[Mplayer-cvslog] CVS: main/libmpdemux demux_mkv.cpp,1.1,1.2
Moritz Bunkus CVS
mosu at mplayerhq.hu
Wed Apr 30 20:35:41 CEST 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv26498
Modified Files:
demux_mkv.cpp
Log Message:
Loop counter was used inside for another loop as well.
Index: demux_mkv.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- demux_mkv.cpp 30 Apr 2003 11:39:32 -0000 1.1
+++ demux_mkv.cpp 30 Apr 2003 18:35:16 -0000 1.2
@@ -295,15 +295,16 @@
}
static int check_track_information(mkv_demuxer_t *d) {
- int i;
+ int i, track_num;
unsigned char *c;
uint32_t u, offset, length;
mkv_track_t *t;
BITMAPINFOHEADER *bih;
WAVEFORMATEX *wfe;
- for (i = 0; i < d->num_tracks; i++) {
- t = d->tracks[i];
+ for (track_num = 0; track_num < d->num_tracks; track_num++) {
+
+ t = d->tracks[track_num];
switch (t->type) {
case 'v': // video track
if (t->codec_id == NULL)
More information about the MPlayer-cvslog
mailing list