[FFmpeg-cvslog] r14568 - trunk/libavformat/matroskadec.c

aurel subversion
Tue Aug 5 02:40:50 CEST 2008


Author: aurel
Date: Tue Aug  5 02:40:49 2008
New Revision: 14568

Log:
matroskadec: move declaration to upper bloc

Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	(original)
+++ trunk/libavformat/matroskadec.c	Tue Aug  5 02:40:49 2008
@@ -1512,10 +1512,12 @@ matroska_read_header (AVFormatContext   
                       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   
         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;




More information about the ffmpeg-cvslog mailing list