EA cdata demuxer: support files with 20 byte header
authorPeter Ross <pross@xvid.org>
Sat, 23 Apr 2011 12:09:19 +0000 (22:09 +1000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 24 Apr 2011 01:53:23 +0000 (03:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/eacdata.c

index b001375..c8999c6 100644 (file)
@@ -63,7 +63,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap)
     };
 
     sample_rate = avio_rb16(pb);
-    avio_skip(pb, 12);
+    avio_skip(pb, (avio_r8(pb) & 0x20) ? 15 : 11);
 
     st = av_new_stream(s, 0);
     if (!st)