changeset 325:e1d4300bf783 libavformat

SWF sanity check patch by (Glyn Kennington <glyn dot kennington at ox dot compsoc dot net>)
author michael
date Fri, 05 Dec 2003 00:41:58 +0000
parents 3ef8c842fe78
children a44f75c31b8d
files swf.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/swf.c	Wed Dec 03 04:58:48 2003 +0000
+++ b/swf.c	Fri Dec 05 00:41:58 2003 +0000
@@ -481,6 +481,8 @@
             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);