]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
get the video dispatch straight
authortmmm <tmmm@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 28 May 2003 23:50:00 +0000 (23:50 +0000)
committertmmm <tmmm@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 28 May 2003 23:50:00 +0000 (23:50 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1916 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/4xm.c

index 706bd52466e72b5d27464ae043fb7e73b7175848..9e924da7a18f33e738ba125cfde997d6764053b4 100644 (file)
@@ -237,18 +237,17 @@ static int fourxm_read_packet(AVFormatContext *s,
             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:{