mpv/sub
wm4 3289be9a28 sd_ass: add default style if there aren't any styles
The default style is added by mp_ass_default_track(), but not by
ass_new_track(). Considering this, the previous condition at this point
didn't make much sense anymore: the actual (converted) subtitle format
doesn't matter much for what styling should be applied. What matters is
if the subtitle was originally ASS, or if it was converted to it.

Change the code such that the default style is added if there aren't
any, even after reading sub extradata. (The extradata contains the ASS
header, including the style section.) This might change behavior with
scripts that don't define any styles. The change is either with this
commit or with an earlier commit in this branch, depending on the
situation - there are multiple places where default styles are added
in libass API functions, and it's all a big mess.

Other than with very old or broken files (where different behavior
doesn't matter much), the current code should be pretty safe, though.
2013-06-03 22:40:31 +02:00
..
ass_mp.c ass_mp: provide function to add default styles 2013-06-03 22:40:07 +02:00
ass_mp.h ass_mp: provide function to add default styles 2013-06-03 22:40:07 +02:00
dec_sub.c sub: never set VSFilter aspect if the ASS subtitle is converted 2013-06-03 22:40:07 +02:00
dec_sub.h sub: basic subtitle converters 2013-06-03 02:09:07 +02:00
draw_bmp.c sub: don't crash on GBRP video 2013-03-28 21:46:17 +01:00
draw_bmp.h
find_subfiles.c sub: remove some global variables 2013-05-30 22:44:18 +02:00
find_subfiles.h
img_convert.c
img_convert.h
osd_dummy.c
osd_font.otf osd: convert OSD font to OpenType 2013-04-27 18:03:19 +02:00
osd_libass.c ass_mp: provide function to add default styles 2013-06-03 22:40:07 +02:00
sd.h sub: never set VSFilter aspect if the ASS subtitle is converted 2013-06-03 22:40:07 +02:00
sd_ass.c sd_ass: add default style if there aren't any styles 2013-06-03 22:40:31 +02:00
sd_lavc.c sub: refactor 2013-06-01 19:44:16 +02:00
sd_lavc_conv.c core: add common function to initialize AVPacket 2013-06-03 22:40:07 +02:00
sd_microdvd.c sub: turn subassconvert_ functions into sub converters 2013-06-03 22:40:02 +02:00
sd_movtext.c sub: basic subtitle converters 2013-06-03 02:09:07 +02:00
sd_spu.c sub: refactor 2013-06-01 19:44:16 +02:00
sd_srt.c sub: turn subassconvert_ functions into sub converters 2013-06-03 22:40:02 +02:00
spudec.c spudec: restore --sub-forced-only support 2013-05-30 22:40:32 +02:00
spudec.h sub: add sd_spu.c to wrap spudec, cleanup mplayer.c 2013-05-30 22:40:32 +02:00
sub.c sub: refactor 2013-06-01 19:44:16 +02:00
sub.h sub: refactor 2013-06-01 19:44:16 +02:00
subreader.c sub: turn subassconvert_ functions into sub converters 2013-06-03 22:40:02 +02:00
subreader.h sub: turn subassconvert_ functions into sub converters 2013-06-03 22:40:02 +02:00