changeset 2379:14b9277b6491 libavformat

export 4xm video version
author michael
date Mon, 13 Aug 2007 00:44:35 +0000
parents 214978878a19
children 41c9871ea3c4
files 4xm.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/4xm.c	Sun Aug 12 09:29:39 2007 +0000
+++ b/4xm.c	Mon Aug 13 00:44:35 2007 +0000
@@ -138,7 +138,6 @@
             }
             fourxm->width = AV_RL32(&header[i + 36]);
             fourxm->height = AV_RL32(&header[i + 40]);
-            i += 8 + size;
 
             /* allocate a new AVStream */
             st = av_new_stream(s, 0);
@@ -150,10 +149,11 @@
 
             st->codec->codec_type = CODEC_TYPE_VIDEO;
             st->codec->codec_id = CODEC_ID_4XM;
-            st->codec->codec_tag = 0;  /* no fourcc */
+            st->codec->codec_tag = AV_RL32(&header[i + 16]);
             st->codec->width = fourxm->width;
             st->codec->height = fourxm->height;
 
+            i += 8 + size;
         } else if (fourcc_tag == strk_TAG) {
             /* check that there is enough data */
             if (size != strk_SIZE) {