Skip to content

Commit

Permalink
[coreDemuxerMpeg/coreUtils] Increase tolerance for detection of seque…
Browse files Browse the repository at this point in the history
…nced files to 8 MiB from 1 GiB fragment size on, this is probably the upper limit
  • Loading branch information
eumagga0x2a committed Mar 20, 2019
1 parent c4879f7 commit ef5fe48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions avidemux_core/ADM_coreDemuxerMpeg/src/dmx_io.cpp
Expand Up @@ -188,6 +188,8 @@ uint8_t fileParser::open( const char *filename,FP_TYPE *multi )
if(myFd.fileSize >= threshold-tolerance && myFd.fileSize <= threshold+tolerance)
break;
threshold<<=1;
if(i==1)
tolerance<<=3; // 8 MiB starting with 1 GiB fragment size
}
}
count++;
Expand Down
2 changes: 2 additions & 0 deletions avidemux_core/ADM_coreUtils/src/avidemutils.cpp
Expand Up @@ -510,6 +510,8 @@ bool ADM_probeSequencedFile(const char *fileName)
break;
}
threshold<<=1;
if(i==1)
tolerance<<=3; // 8 MiB starting with 1 GiB fragment size
}
if(!success)
return false;
Expand Down

0 comments on commit ef5fe48

Please sign in to comment.