Mercurial > libavformat.hg
changeset 3648:07f046bf6849 libavformat
matroskadec: move declaration to upper block
author | aurel |
---|---|
date | Tue, 05 Aug 2008 00:40:49 +0000 |
parents | 98eb4eb368fa |
children | 71da9d010bae |
files | matroskadec.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Tue Aug 05 00:40:46 2008 +0000 +++ b/matroskadec.c Tue Aug 05 00:40:49 2008 +0000 @@ -1512,10 +1512,12 @@ 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 @@ 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;