[FFmpeg-cvslog] r20178 - trunk/libavcodec/vc1dec.c
kostya
subversion
Tue Oct 6 17:30:09 CEST 2009
Author: kostya
Date: Tue Oct 6 17:30:08 2009
New Revision: 20178
Log:
Since some junk may be or may be not present before actual VC-1 extradata,
search for real extradata start instead of always skipping one byte.
Patch by Andrew Dennison gmailify(${name}d, lists)
Thread: [PATCH] Fix VC1 "Incomplete extradata" for mkv files generated by eac3to
Modified:
trunk/libavcodec/vc1dec.c
Modified: trunk/libavcodec/vc1dec.c
==============================================================================
--- trunk/libavcodec/vc1dec.c Tue Oct 6 08:33:18 2009 (r20177)
+++ trunk/libavcodec/vc1dec.c Tue Oct 6 17:30:08 2009 (r20178)
@@ -3039,7 +3039,7 @@ static av_cold int vc1_decode_init(AVCod
}
buf2 = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
- if(start[0]) start++; // in WVC1 extradata first byte is its size
+ start = find_next_marker(start, end); // in WVC1 extradata first byte is its size, but can be 0 in mkv
next = start;
for(; next < end; start = next){
next = find_next_marker(start + 4, end);
More information about the ffmpeg-cvslog
mailing list