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

michael subversion
Tue Jan 27 22:58:45 CET 2009


Author: michael
Date: Tue Jan 27 22:58:45 2009
New Revision: 16834

Log:
Move current_track variable closer to where it is used.

Modified:
   trunk/libavformat/4xm.c

Modified: trunk/libavformat/4xm.c
==============================================================================
--- trunk/libavformat/4xm.c	Tue Jan 27 22:56:28 2009	(r16833)
+++ trunk/libavformat/4xm.c	Tue Jan 27 22:58:45 2009	(r16834)
@@ -100,7 +100,6 @@ static int fourxm_read_header(AVFormatCo
     FourxmDemuxContext *fourxm = s->priv_data;
     unsigned char *header;
     int i, ret;
-    int current_track = -1;
     AVStream *st;
 
     fourxm->track_count = 0;
@@ -162,6 +161,7 @@ static int fourxm_read_header(AVFormatCo
 
             i += 8 + size;
         } else if (fourcc_tag == strk_TAG) {
+            int current_track;
             /* check that there is enough data */
             if (size != strk_SIZE) {
                 ret= AVERROR_INVALIDDATA;




More information about the ffmpeg-cvslog mailing list