[Ffmpeg-cvslog] r8695 - trunk/libavformat/matroska.c

aurel subversion
Mon Apr 9 18:45:44 CEST 2007


Author: aurel
Date: Mon Apr  9 18:45:43 2007
New Revision: 8695

Modified:
   trunk/libavformat/matroska.c

Log:
move matroska_find_track_by_num() upper in the file
so that it can be used by other part of the code


Modified: trunk/libavformat/matroska.c
==============================================================================
--- trunk/libavformat/matroska.c	(original)
+++ trunk/libavformat/matroska.c	Mon Apr  9 18:45:43 2007
@@ -974,6 +974,21 @@ ebml_read_header (MatroskaDemuxContext *
     return 0;
 }
 
+
+static int
+matroska_find_track_by_num (MatroskaDemuxContext *matroska,
+                            int                   num)
+{
+    int i;
+
+    for (i = 0; i < matroska->num_tracks; i++)
+        if (matroska->tracks[i]->num == num)
+            return i;
+
+    return -1;
+}
+
+
 /*
  * Put one packet in an application-supplied AVPacket struct.
  * Returns 0 on success or -1 on failure.
@@ -2354,19 +2369,6 @@ matroska_read_header (AVFormatContext   
     return res;
 }
 
-static int
-matroska_find_track_by_num (MatroskaDemuxContext *matroska,
-                            int                   num)
-{
-    int i;
-
-    for (i = 0; i < matroska->num_tracks; i++)
-        if (matroska->tracks[i]->num == num)
-            return i;
-
-    return -1;
-}
-
 static inline int
 rv_offset(uint8_t *data, int slice, int slices)
 {




More information about the ffmpeg-cvslog mailing list