[FFmpeg-devel] [PATCH 4/4] EA cdata demuxer: support files with 20 byte header

Peter Ross pross at xvid.org
Sat Apr 23 14:09:19 CEST 2011


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

diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c
index 1a9f3d0..cc1f833 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)
-- 
1.7.4.1

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110423/dc861f1d/attachment.asc>


More information about the ffmpeg-devel mailing list