[FFmpeg-devel] [PATCH v5] lavf: palettized QuickTime video in Matroska

Mats Peterson matsp888 at yahoo.com
Wed Dec 23 13:05:09 CET 2015


OK Clement, I have changed some of the stuff you complained about. 
Regarding my being the sole author, well, the *idea* has been there 
before in the shape of that patch by, they say, Martin Storsjö (which he 
doesn't admit to be behind, I've talked to him). I don't know how his 
name came up whatsoever. Anyway, that old patch was the "technically bad 
one", to cite another developer here, since it called into the mov 
demuxer from matroskadec.c. Nothing of that exists anymore.

Original explanation of the patch follows:

Palettized QuickTime video in Matroska has hitherto not been recognized 
whatsoever, and the "palette" used has been completely random.

The patch for matroskadec.c fixes this issue by adding a palette side 
data packet in matroska_deliver_packet(), much in the same way as it's 
done in mov.c.

The change to mov.c consists mainly of moving the palette handling from 
the mov_parse_stsd_video() function to a new ff_get_qtpalette() function 
in the new file qtpalette.c, which is shared by both matroskadec.c and 
mov.c.

In matroskadec.c, I'm also putting the palette in 'extradata', like it's 
done for V_MS/VFW/FOURCC; this is a requirement in order for MPlayer to 
recognize the palette.

-- 
Mats Peterson
http://matsp888.no-ip.org/~mats/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavf-palettized-QuickTime-video-in-Matroska.patch
Type: text/x-patch
Size: 14099 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151223/8d327e40/attachment.bin>


More information about the ffmpeg-devel mailing list