AVI parser: fix reading & skipping video property header chunks

This one got broken in 7d32fdf223. The
effect was that following chunks weren't read correctly. If the
following chunks were index chunks, the parts of the file the index
chunks pointed to weren't read either.

Fixes #3209.
This commit is contained in:
Moritz Bunkus 2021-10-11 21:01:08 +02:00
parent d0ea7c40b6
commit 76d0b61287
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,11 @@
* mkvmerge: AC-3 parser: E-AC-3 with BSID values > 10 and ≤ 15 are recognized
now, too. Implements #3211.
## Bug fixes
* mkvmerge: AVI reader: fixed reading AVI files that contain `vprp` video
properties header chunks; reading aborted too early. Fixes #3209.
# Version 62.0.0 "Apollo" 2021-10-10

View File

@ -2674,6 +2674,7 @@ int avi_parse_input_file(avi_t *AVI, int getIndex)
AVI->video_properties_valid = 1;
memcpy(&AVI->video_properties, hdrl_data + i + 8, sizeof(alVIDEO_PROPERTIES));
}
i += 8;
}
else if((strncasecmp((char *)(hdrl_data+i),"JUNK",4) == 0) ||
(strncasecmp((char *)(hdrl_data+i),"strn",4) == 0)) {