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
746a3c89ad
commit
b6fd8e399b
|
@ -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