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

Rich Felker dalias
Fri Jan 18 05:47:22 CET 2008

On Fri, Jan 18, 2008 at 04:18:50AM +0000, M?ns Rullg?rd wrote:
> elupus <elupus at ecce.se> writes:
> > 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.
> Sensible would be to use the same format as on actual DVDs.

Supporting both would probably be the most sensible.


More information about the ffmpeg-devel mailing list