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
This commit is contained in:
parent
c70f1716cf
commit
647b776270
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user