diff options
author | wm4 <wm4@nowhere> | 2013-04-29 01:49:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-30 22:44:18 +0200 |
commit | 28116b8a799078b3c6b3b559ed4463669c79cf0e (patch) | |
tree | 43e78d552443e08d5250774c01a5da245cd2b50f /sub/ass_mp.c | |
parent | fd02f0f4d88371c728aff3b4487974118ba4d014 (diff) | |
download | mpv-28116b8a799078b3c6b3b559ed4463669c79cf0e.tar.bz2 mpv-28116b8a799078b3c6b3b559ed4463669c79cf0e.tar.xz |
sub: remove some global variables
Diffstat (limited to 'sub/ass_mp.c')
-rw-r--r-- | sub/ass_mp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sub/ass_mp.c b/sub/ass_mp.c index f00bf22428..4be89fb004 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -84,7 +84,7 @@ ASS_Track *mp_ass_default_track(ASS_Library *library, struct MPOpts *opts) track->WrapStyle = 0; if (opts->ass_styles_file && opts->ass_style_override) - ass_read_styles(track, opts->ass_styles_file, sub_cp); + ass_read_styles(track, opts->ass_styles_file, opts->sub_cp); if (track->n_styles == 0) { track->Kerning = true; @@ -225,7 +225,7 @@ void mp_ass_configure(ASS_Renderer *priv, struct MPOpts *opts, if (opts->ass_style_override) { set_use_margins = opts->ass_use_margins; #if LIBASS_VERSION >= 0x01010000 - set_sub_pos = 100 - sub_pos; + set_sub_pos = 100 - opts->sub_pos; #endif set_line_spacing = opts->ass_line_spacing; set_font_scale = opts->sub_scale; |