From a10f1cbb934cd607643b08f43067233ae7620e75 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 27 Jan 2009 21:58:45 +0000 Subject: [PATCH] Move current_track variable closer to where it is used. Originally committed as revision 16834 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/4xm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/4xm.c b/libavformat/4xm.c index 8d2fbe36d..43aa64a28 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -100,7 +100,6 @@ static int fourxm_read_header(AVFormatContext *s, 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(AVFormatContext *s, 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; -- 2.34.1