mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
99d9e56e27
The --ass-force-style option was only applied when the main libass library handle was created. Thus any per-file option changes later had no effect. Do the ass_set_style_overrides() call in per-file initialization instead so that possible changes will be applied. Also move the option variable to the option struct. Current libass will crash (usually) if you set style overrides to a nonempty value, then an empty one. It'll be easier to trigger this bug after this commit, but the problem is not on mplayer2 side. The fix is trivial so hopefully there will be a fixed libass soon. |
||
---|---|---|
.. | ||
ass_mp.c | ||
ass_mp.h | ||
av_sub.c | ||
av_sub.h | ||
dec_sub.c | ||
dec_sub.h | ||
find_sub.c | ||
find_subfiles.c | ||
find_subfiles.h | ||
font_load_ft.c | ||
font_load.c | ||
font_load.h | ||
osd_font.h | ||
sd_ass.c | ||
sd.h | ||
spudec.c | ||
spudec.h | ||
sub_cc.c | ||
sub_cc.h | ||
sub.c | ||
sub.h | ||
subassconvert.c | ||
subassconvert.h | ||
subreader.c | ||
subreader.h | ||
unrar_exec.c | ||
unrar_exec.h | ||
vobsub.c | ||
vobsub.h |