[FFmpeg-cvslog] EA cdata demuxer: support files with 20 byte header

Peter Ross git at videolan.org
Sun Apr 24 04:16:55 CEST 2011


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Sat Apr 23 22:09:19 2011 +1000| [c2a8f125855aef72efcde8a06dd73a5fbe5dcf25] | committer: Michael Niedermayer

EA cdata demuxer: support files with 20 byte header

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c2a8f125855aef72efcde8a06dd73a5fbe5dcf25
---

 libavformat/eacdata.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c
index b001375..c8999c6 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)



More information about the ffmpeg-cvslog mailing list