Commit fff849b4 authored by michael's avatar michael

SWF sanity check patch by (Glyn Kennington <glyn dot kennington at ox dot compsoc dot net>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2565 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 535891cc
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment