[FFmpeg-devel] [PATCH] Decode codec private in mkv demuxer

Aurelien Jacobs aurel
Thu Jun 19 22:02:41 CEST 2008


Evgeniy Stepanov wrote:

> Hi,
> 
> codec private data of a Matroska track can require decoding, depending on the 
> value of ContentEncodingScope element. The current mkv demuxer only decodes 
> frame contents, but not private data.

OK. Now, can you provide some samples requiring extradata decoding ?
What tool can generate them ?

> The first patch moves buffer decoding code to a separate function. The second 
> patch uses it to decode track private data.

Patches are mostly good, but may benefit from some improvements.
For example, I think that COMP_HEADERSTRIP have no sens in regards to extradata.
This kind of "compression" just avoid duplication of redundant leading bytes.
But extradata only appears once, so there are no possible duplication to avoid.

Anyway, I will have a deeper look at the patches later (and I would like to be
able to test them before commit).

Aurel




More information about the ffmpeg-devel mailing list