Mercurial > mplayer.hg
changeset 10028:7ca8b302032f
Loop counter was used inside for another loop as well.
author | mosu |
---|---|
date | Wed, 30 Apr 2003 18:35:16 +0000 |
parents | 898a50ad6839 |
children | 2d31643a3c22 |
files | libmpdemux/demux_mkv.cpp |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.cpp Wed Apr 30 18:24:04 2003 +0000 +++ b/libmpdemux/demux_mkv.cpp Wed Apr 30 18:35:16 2003 +0000 @@ -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)