mirror of https://github.com/mpv-player/mpv
Loop counter was used inside for another loop as well.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10029 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9d0b5a9eaf
commit
1862e17afc
|
@ -295,15 +295,16 @@ static mkv_track_t *find_track_by_num(mkv_demuxer_t *d, uint32_t n,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int check_track_information(mkv_demuxer_t *d) {
|
static int check_track_information(mkv_demuxer_t *d) {
|
||||||
int i;
|
int i, track_num;
|
||||||
unsigned char *c;
|
unsigned char *c;
|
||||||
uint32_t u, offset, length;
|
uint32_t u, offset, length;
|
||||||
mkv_track_t *t;
|
mkv_track_t *t;
|
||||||
BITMAPINFOHEADER *bih;
|
BITMAPINFOHEADER *bih;
|
||||||
WAVEFORMATEX *wfe;
|
WAVEFORMATEX *wfe;
|
||||||
|
|
||||||
for (i = 0; i < d->num_tracks; i++) {
|
for (track_num = 0; track_num < d->num_tracks; track_num++) {
|
||||||
t = d->tracks[i];
|
|
||||||
|
t = d->tracks[track_num];
|
||||||
switch (t->type) {
|
switch (t->type) {
|
||||||
case 'v': // video track
|
case 'v': // video track
|
||||||
if (t->codec_id == NULL)
|
if (t->codec_id == NULL)
|
||||||
|
|
Loading…
Reference in New Issue