[FFmpeg-devel] [PATCH] Unfinished GSoC qual task (16bit VQA Video Decoder)

Mike Melanson mike
Sun Apr 26 07:24:05 CEST 2009


Michael Niedermayer wrote:
> On Sun, Apr 26, 2009 at 01:03:23AM +0200, Adam Iglewski wrote:
>> This was the original code flow and I just added chunks for
>> decoding 16 bit frames. But I believe that this is because chunk order
>> in file does not guarantee correct order for decoding frame eg. VPTR chunk 
>> which contain indices to codebook can appear before CBFZ chunk which 
>> contain codebook. But I might be wrong. Maybe Mike Melanson
>> will know better ?
> 
> mike?
> 
> anyway, if true its still possible to have a simple function to traverse the
> chunks and search for a specific one, that then could just be called with the
> types in the needed order, i suspect this might be slightly simpler

I'm pretty sure I just coded this in a paranoid manner. The chunks 
usually came through in a predictable order, but I was concerned that 
some malformed file would put them in a different order, or that 2 of a 
particular chunk would be encoded (e.g., 2 codebooks). I have code later 
on that complains if any rogue conditions were met.

-- 
     -Mike Melanson



More information about the ffmpeg-devel mailing list