diff options
author | Glyn Kennington <glyn.kennington@ox.compsoc.net> | 2003-12-05 00:41:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-12-05 00:41:58 +0000 |
commit | 647b77627056024e53d0beb5ac3d57ed3c670a9e (patch) | |
tree | 573b1db555237c21211bd354f83ec3b49eefdf84 | |
parent | c70f1716cfb86c97ef0ff2e8ec49dcb89f5daaa4 (diff) | |
download | ffmpeg-647b77627056024e53d0beb5ac3d57ed3c670a9e.tar.gz |
SWF sanity check patch by (Glyn Kennington <glyn dot kennington at ox dot compsoc dot net>)
Originally committed as revision 2565 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/swf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c index b19d6649e8..e9999f41b3 100644 --- a/libavformat/swf.c +++ b/libavformat/swf.c @@ -481,6 +481,8 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) get_byte(pb); v = get_byte(pb); get_le16(pb); + if (len!=4) + url_fskip(pb,len-4); /* if mp3 streaming found, OK */ if ((v & 0x20) != 0) { st = av_new_stream(s, 0); |