[FFmpeg-devel] [PATCH 16/28] dvdsub hacks

Joakim Plate elupus
Wed Jun 30 17:54:37 CEST 2010

John Stebbins <stebbins <at> jetheaddev.com> writes:

> This works for matroska. But not for mp4 which only has the palette data
> in a binary format in decoder specific info.  libavformat puts this in
> extradata.  The values are stored in exactly the format they came from
> the VTS (i.e. byte order 0, Y, Cb, Cr).

> +    if(!ctx->has_palette && avctx->extradata_size == 64)
> +        ayvu_to_argb((uint8_t*)avctx->extradata, ctx->palette, 16);

It supports that too. It will just try to parse it as text first, if that fails 
read the binary data.


More information about the ffmpeg-devel mailing list