diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-05 14:17:41 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-05 14:17:41 +0000 |
commit | 17230c9d4d005a1d4db0b3c278649f0830fdf0be (patch) | |
tree | ab2ad7683e5582a4ed6edf6f890e5edc3ef1d15f /libavformat/swf.c | |
parent | bc9a459780178ec17a2b1e5f7d8f76fad3c2c156 (diff) | |
download | ffmpeg-17230c9d4d005a1d4db0b3c278649f0830fdf0be.tar.gz |
dont skip too many bytes if tag is TAG_STREAMHEAD2 and mp3
Originally committed as revision 7408 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/swf.c')
-rw-r--r-- | libavformat/swf.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c index 6029e36783..caadc9d859 100644 --- a/libavformat/swf.c +++ b/libavformat/swf.c @@ -822,13 +822,10 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) get_byte(pb); v = get_byte(pb); swf->samples_per_frame = get_le16(pb); - if (len!=4) + if (len > 4) url_fskip(pb,len-4); /* if mp3 streaming found, OK */ if ((v & 0x20) != 0) { - if ( tag == TAG_STREAMHEAD2 ) { - get_le16(pb); - } ast = av_new_stream(s, 1); if (!ast) return -ENOMEM; |