[FFmpeg-devel] [PATCH] read palette information from extradata for dvd subtitle decoder
Fri Jan 18 00:42:42 CET 2008
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4185 bytes
Desc: Attached file: dvdsub.patch
More information about the ffmpeg-devel