changeset 10369:71a38fce15bc libavcodec

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
author kostya
date Tue, 06 Oct 2009 15:30:08 +0000
parents 59ec306245a4
children 6009feb54020
files vc1dec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vc1dec.c	Tue Oct 06 06:33:18 2009 +0000
+++ b/vc1dec.c	Tue Oct 06 15:30:08 2009 +0000
@@ -3039,7 +3039,7 @@
         }
 
         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);