MatroskaParser: more gracefully fail on files with more then 64 tracks
Instead of playback failing, excess tracks are skipped
This commit is contained in:
parent
6a6c0ef965
commit
84aa5a1d06
@ -1424,8 +1424,11 @@ static void parseTrackEntry(MatroskaFile *mf,ulonglong toplen) {
|
||||
size_t cplen = 0, cslen = 0, cpadd = 0;
|
||||
unsigned CompScope, num_comp = 0;
|
||||
|
||||
if (mf->nTracks >= MAX_TRACKS)
|
||||
errorjmp(mf,"Too many tracks.");
|
||||
if (mf->nTracks >= MAX_TRACKS) {
|
||||
//errorjmp(mf,"Too many tracks.");
|
||||
skipbytes(mf, toplen);
|
||||
return;
|
||||
}
|
||||
|
||||
// clear track info
|
||||
memset(&t,0,sizeof(t));
|
||||
|
Loading…
Reference in New Issue
Block a user