Commit 9a9a3b03 authored by Aurelien Jacobs's avatar Aurelien Jacobs

matroskadec: move declaration to upper block

Originally committed as revision 14568 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a636a56b
...@@ -1512,10 +1512,12 @@ matroska_read_header (AVFormatContext *s, ...@@ -1512,10 +1512,12 @@ matroska_read_header (AVFormatContext *s,
AVFormatParameters *ap) AVFormatParameters *ap)
{ {
MatroskaDemuxContext *matroska = s->priv_data; MatroskaDemuxContext *matroska = s->priv_data;
MatroskaTrack *tracks;
EbmlList *index_list; EbmlList *index_list;
MatroskaIndex *index; MatroskaIndex *index;
int i, j, last_level, res = 0; int i, j, last_level, res = 0;
Ebml ebml = { 0 }; Ebml ebml = { 0 };
AVStream *st;
uint32_t id; uint32_t id;
matroska->ctx = s; matroska->ctx = s;
...@@ -1642,10 +1644,7 @@ matroska_read_header (AVFormatContext *s, ...@@ -1642,10 +1644,7 @@ matroska_read_header (AVFormatContext *s,
return -1; return -1;
{ {
MatroskaTrack *tracks = matroska->tracks.elem; tracks = matroska->tracks.elem;
int i, j;
AVStream *st;
for (i=0; i < matroska->tracks.nb_elem; i++) { for (i=0; i < matroska->tracks.nb_elem; i++) {
MatroskaTrack *track = &tracks[i]; MatroskaTrack *track = &tracks[i];
enum CodecID codec_id = CODEC_ID_NONE; enum CodecID codec_id = CODEC_ID_NONE;
......
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