1
0
Fork 0

matroskadec_haali: relax cluster and frame size checks

Otherwise files with huge frames (uncompressed/ProRes/...) can't play properly at 4K
This commit is contained in:
Hendrik Leppkes 2014-08-09 13:39:46 +02:00
parent 7d7a221ee5
commit 81b18172da
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 1 additions and 3 deletions

View File

@ -67,7 +67,7 @@
#define MAX_TRACKS 64
#define MAX_READAHEAD (256*1024)
#define MAXCLUSTER (64*1048576)
#define MAXCLUSTER (256*1048576)
#define MAXFRAME (4*1048576)
#if defined(_WIN32) && defined(_MSC_VER)
@ -2521,8 +2521,6 @@ static int readMoreBlocks(MatroskaFile *mf) {
ENDFOR(mf);
out:;
} else {
if (toplen > MAXFRAME)
errorjmp(mf,"Element in a cluster is too large around %llu, %X [%u]",filepos(mf),cid,(unsigned)toplen);
if (cid == 0xa0) // BlockGroup
parseBlockGroup(mf,toplen,mf->tcCluster, 0);
else if (cid == 0xa3) // BlockEx