isom: convert mp4 dvdsub extradata to vobsub format
authorwm4 <nfxjfg@googlemail.com>
Wed, 12 Mar 2014 20:18:46 +0000 (21:18 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 15 Mar 2014 13:32:58 +0000 (14:32 +0100)
commit8f629a986c46f227abda1811a6ad1f449871ca35
tree65fe6b55b47be3ee57ce66c429d4b6ce6ad14ad2
parentf20977921be5e28829953da7ba2d899f913ab06b
isom: convert mp4 dvdsub extradata to vobsub format

mp4 files embedding DVD subtitles do not use the same extradata format
as the rest of Libav expects. The subtitle decoder in libavcodec in
particular does not understand this format.

Convert the extradata to the vobsub .idx format. mp4 stores the palette
as binary 32 bit ints in YUV. The subtitle resolution is stored
separately in the track header, which we access through AVStream.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/isom.c