Commit c32d6a6d authored by kostya's avatar kostya

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



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20178 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c02b82d6
......@@ -3039,7 +3039,7 @@ static av_cold int vc1_decode_init(AVCodecContext *avctx)
}
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment