matroskadec: move declaration to upper block

Originally committed as revision 14568 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Aurelien Jacobs 17 years ago
parent a636a56bf4
commit 9a9a3b03a6
  1. 7
      libavformat/matroskadec.c

@ -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,
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;

Loading…
Cancel
Save