From 671ca2a570ed030a2d18c63d2090f0571355dc3d Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 28 Dec 2012 08:38:18 +0100 Subject: demux_mpg, ass_mp: fix warnings The warnings in demux_mpg were silenced by additional no-operation casts. A variable in ass_mp was used only for some versions of libass; now the declaration is in that version #ifdef too to avoid a compiler warning. --- sub/ass_mp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sub/ass_mp.c') diff --git a/sub/ass_mp.c b/sub/ass_mp.c index c992f017f7..44f01ac186 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -232,13 +232,17 @@ void mp_ass_configure(ASS_Renderer *priv, struct MPOpts *opts, ass_set_margins(priv, dim->mt, dim->mb, dim->ml, dim->mr); int set_use_margins = 0; +#if LIBASS_VERSION >= 0x01010000 int set_sub_pos = 0; +#endif float set_line_spacing = 0; float set_font_scale = 1; int set_hinting = 0; if (opts->ass_style_override) { set_use_margins = opts->ass_use_margins; +#if LIBASS_VERSION >= 0x01010000 set_sub_pos = 100 - sub_pos; +#endif set_line_spacing = opts->ass_line_spacing; set_font_scale = opts->sub_scale; set_hinting = opts->ass_hinting & 3; // +4 was for no hinting if scaled -- cgit v1.2.3