changeset 4299:59c385f94310 libavformat

Move current_track variable closer to where it is used.
author michael
date Tue, 27 Jan 2009 21:58:45 +0000
parents dad1519b0829
children 13e68e70e129
files 4xm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/4xm.c	Tue Jan 27 21:56:28 2009 +0000
+++ b/4xm.c	Tue Jan 27 21:58:45 2009 +0000
@@ -100,7 +100,6 @@
     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 @@
 
             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;