From c2a8f125855aef72efcde8a06dd73a5fbe5dcf25 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Sat, 23 Apr 2011 22:09:19 +1000 Subject: [PATCH] EA cdata demuxer: support files with 20 byte header Signed-off-by: Michael Niedermayer --- libavformat/eacdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c index b00137582c..c8999c6b23 100644 --- a/libavformat/eacdata.c +++ b/libavformat/eacdata.c @@ -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)