diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-05 00:40:49 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-05 00:40:49 +0000 |
commit | 9a9a3b03a6cad636ad6a937d1ebd38d91e5b8a96 (patch) | |
tree | 1f35482dc904904e9b3fef56a4fccbc176e5b624 /libavformat/matroskadec.c | |
parent | a636a56bf44d0b223214bc6d60d0560ddc469d26 (diff) | |
download | ffmpeg-9a9a3b03a6cad636ad6a937d1ebd38d91e5b8a96.tar.gz |
matroskadec: move declaration to upper block
Originally committed as revision 14568 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index abd8cc2237..2be38bddda 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1512,10 +1512,12 @@ matroska_read_header (AVFormatContext *s, AVFormatParameters *ap) { MatroskaDemuxContext *matroska = s->priv_data; + MatroskaTrack *tracks; EbmlList *index_list; MatroskaIndex *index; int i, j, last_level, res = 0; Ebml ebml = { 0 }; + AVStream *st; uint32_t id; matroska->ctx = s; @@ -1642,10 +1644,7 @@ matroska_read_header (AVFormatContext *s, return -1; { - MatroskaTrack *tracks = matroska->tracks.elem; - int i, j; - AVStream *st; - + tracks = matroska->tracks.elem; for (i=0; i < matroska->tracks.nb_elem; i++) { MatroskaTrack *track = &tracks[i]; enum CodecID codec_id = CODEC_ID_NONE; |