[FFmpeg-devel] [PATCH] read palette information from extradata for dvd subtitle decoder

elupus elupus
Fri Jan 18 00:42:42 CET 2008


Hi,

Here's a patch to read the dvd palette from extradata in the dvdsub
decoder, this allows it to read matroska stored subtitles (and external
vobsubs if player can supply it) with the correct color displayed.

It relies on extradata being padded, but i think that is alright.

It introduces a context for this information. Some other stuff could
probably be moved to it too, but not needed for now.

Should be simple to add stuff like offsets/custom colors/alignments.
scaling would be very much harder todo in decoder, but it's probably not
it's job anyway.

I suppose the string based extradata isn't the best way to store that
stuff, but seems silly to invent a new format since matroska and vobsub idx
files already use this.

Regards
Joakim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvdsub.patch
Type: text/x-patch
Size: 4185 bytes
Desc: Attached file: dvdsub.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080118/17aeca89/attachment.bin>



More information about the ffmpeg-devel mailing list