changeset 144:9e73bf732800 libavformat

get the video dispatch straight
author tmmm
date Wed, 28 May 2003 23:50:00 +0000
parents 76dd1e93b064
children 4f3960430e54
files 4xm.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/4xm.c	Wed May 28 02:41:24 2003 +0000
+++ b/4xm.c	Wed May 28 23:50:00 2003 +0000
@@ -237,18 +237,17 @@
             return ret;
         fourcc_tag = LE_32(&header[0]);
         size = LE_32(&header[4]);
-        if (fourcc_tag == LIST_TAG) {
-            /* skip the LIST-FRAM tag and get the next fourcc */
-            get_le32(pb);
-            fourcc_tag = get_le32(pb);
-            size = get_le32(pb);
-        }
 
         if (url_feof(pb))
             return -EIO;
 
         switch (fourcc_tag) {
 
+        case LIST_TAG:
+            /* skip the LIST-* tag and move on to the next fourcc */
+            get_le32(pb);
+            break;
+
         case ifrm_TAG:
         case pfrm_TAG:
         case cfrm_TAG:{