summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-12-07 21:18:24 +0100
committerwm4 <wm4@nowhere>2012-12-10 23:27:46 +0100
commit7288834a4c2945729f5a261cba2c007683754b7b (patch)
tree133075a0c353463af4d12e34eab053159aedc1ad /demux
parentdf28eac342ec649068cddd03717f00e81790c523 (diff)
downloadmpv-7288834a4c2945729f5a261cba2c007683754b7b.tar.bz2
mpv-7288834a4c2945729f5a261cba2c007683754b7b.tar.xz
sub: use ffmpeg decoder for DVD subs
Do this only if demux_lavf is used. Using demux_mpg and the ffmpeg DVD subtitle decoder doesn't work. The problem is probably that demux_mpg doesn't join split sub packets, while demux_lavf does. The internal DVD sub decoder (spudec.c) can, while ffmpeg's dvdsub can't. I do not know whether this is the actual problem. If DVD playback is used, create "fake" vobsub-style text extradata (like .idx files) to pass resolution and palette information to the ffmpeg decoder. We could use the "palette" AVOpt and avcodec_set_dimensions() instead, but it's actually simpler this way. Note that the decoder doesn't parse any other fields. Also note that DVD playback still uses demux_mpg by default, so this code is inactive unless -demuxer lavf is specified. This is mainly preparation for the case when we manage to get rid of demux_mpg for DVD playback.
Diffstat (limited to 'demux')
0 files changed, 0 insertions, 0 deletions