diff options
author | wm4 <wm4@nowhere> | 2013-06-01 19:54:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-03 22:40:02 +0200 |
commit | e19ffa02aa370cbc3b559f85b286ea09b06ab29b (patch) | |
tree | 3335cdcc8664d9e3b98631fe8128b138c095069a /sub/sd.h | |
parent | 14dd95154820d4ec9afb5200335177b011233049 (diff) | |
download | mpv-e19ffa02aa370cbc3b559f85b286ea09b06ab29b.tar.bz2 mpv-e19ffa02aa370cbc3b559f85b286ea09b06ab29b.tar.xz |
sub: turn subassconvert_ functions into sub converters
This means subassconvert.c is split in sd_srt.c and sd_microdvd.c. Now
this code is involved in the sub conversion chain like sd_movtext is.
The invocation of the converter in sd_ass.c is removed.
This requires some other changes to make the new sub converter code work
with loading external subtitles. Until now, subtitles loaded via
subreader.c was assumed to be in plaintext, or for some formats, in ASS
(except in -no-ass mode). Then these were added to an ASS_Track. Change
this so that subtitles are always in their original format (as far as
decoders/converters for them are available), and turn every sub event
read by subreader.c as packet to the dec_sub.c subtitle chain.
This removes differences between external/demuxed and -ass/-no-ass code
paths further.
Diffstat (limited to 'sub/sd.h')
-rw-r--r-- | sub/sd.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -59,4 +59,6 @@ struct demux_packet *sd_conv_def_get_converted(struct sd *sd); void sd_conv_def_reset(struct sd *sd); void sd_conv_def_uninit(struct sd *sd); +#define SD_MAX_LINE_LEN 1000 + #endif |