[FFmpeg-devel] [PATCH] avi demuxer breaks on uneven chunk sizes

elupus elupus
Fri Oct 3 22:47:20 CEST 2008


Hi,

Currently the avi demuxer uses the chunk size as given by the stream to
look for the next chunk. However some muxers (transcode 0.6.9), write
uneven chunk sizes. 

I'm not sure if this is actually valid by the specification, but in either
case the new chunk size should start at a multiple of two bytes from the
last. So this patch skips one byte before attempting to read next chunk.

Normally the resync code should take care of the issue, but if you are
unlucky, it syncs to something invalid, and the output is garbled.

Joakim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unevensize.patch
Type: text/x-patch
Size: 441 bytes
Desc: Attached file: unevensize.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081003/58522a43/attachment.bin>



More information about the ffmpeg-devel mailing list