1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

matroskadec: move declaration to upper block

Originally committed as revision 14568 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2008-08-05 00:40:49 +00:00
parent a636a56bf4
commit 9a9a3b03a6

View File

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