so that it can be used by other part of the code
Originally committed as revision 8695 to svn://svn.ffmpeg.org/ffmpeg/trunk
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.
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)
{