changeset 1619:b95cdbfc2d16 libavformat

dont skip too many bytes if tag is TAG_STREAMHEAD2 and mp3
author bcoudurier
date Fri, 05 Jan 2007 14:17:41 +0000
parents 7376514d9d60
children 11a1f416d393
files swf.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/swf.c	Tue Jan 02 22:22:12 2007 +0000
+++ b/swf.c	Fri Jan 05 14:17:41 2007 +0000
@@ -822,13 +822,10 @@
             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;