Commit a10f1cbb authored by Michael Niedermayer's avatar Michael Niedermayer

Move current_track variable closer to where it is used.

Originally committed as revision 16834 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 68e1794e
...@@ -100,7 +100,6 @@ static int fourxm_read_header(AVFormatContext *s, ...@@ -100,7 +100,6 @@ static int fourxm_read_header(AVFormatContext *s,
FourxmDemuxContext *fourxm = s->priv_data; FourxmDemuxContext *fourxm = s->priv_data;
unsigned char *header; unsigned char *header;
int i, ret; int i, ret;
int current_track = -1;
AVStream *st; AVStream *st;
fourxm->track_count = 0; fourxm->track_count = 0;
...@@ -162,6 +161,7 @@ static int fourxm_read_header(AVFormatContext *s, ...@@ -162,6 +161,7 @@ static int fourxm_read_header(AVFormatContext *s,
i += 8 + size; i += 8 + size;
} else if (fourcc_tag == strk_TAG) { } else if (fourcc_tag == strk_TAG) {
int current_track;
/* check that there is enough data */ /* check that there is enough data */
if (size != strk_SIZE) { if (size != strk_SIZE) {
ret= AVERROR_INVALIDDATA; ret= AVERROR_INVALIDDATA;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment