diff options
author | Mike Melanson <mike@multimedia.cx> | 2003-05-28 23:50:00 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2003-05-28 23:50:00 +0000 |
commit | 73a19b2daee20b093924c756e01bbdd20f01236b (patch) | |
tree | 2797ecb590a4c1716177dfd22b59240d39f96737 /libavformat/4xm.c | |
parent | d592f67fb6e5abbdb93a6f38f7c2b1bb5686c35b (diff) | |
download | ffmpeg-73a19b2daee20b093924c756e01bbdd20f01236b.tar.gz |
get the video dispatch straight
Originally committed as revision 1916 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/4xm.c')
-rw-r--r-- | libavformat/4xm.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c index 706bd52466..9e924da7a1 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -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:{ |