[FFmpeg-cvslog] r10092 - trunk/libavformat/4xm.c

michael subversion
Mon Aug 13 02:44:36 CEST 2007


Author: michael
Date: Mon Aug 13 02:44:35 2007
New Revision: 10092

Log:
export 4xm video version


Modified:
   trunk/libavformat/4xm.c

Modified: trunk/libavformat/4xm.c
==============================================================================
--- trunk/libavformat/4xm.c	(original)
+++ trunk/libavformat/4xm.c	Mon Aug 13 02:44:35 2007
@@ -138,7 +138,6 @@ static int fourxm_read_header(AVFormatCo
             }
             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 @@ static int fourxm_read_header(AVFormatCo
 
             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) {




More information about the ffmpeg-cvslog mailing list