mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-28 13:57:22 +00:00
MPEG VideoBuffer: fix search range
This commit is contained in:
parent
f4fbf0c591
commit
fc10f8f84f
@ -44,7 +44,7 @@ int32_t MPEGVideoBuffer::FindStartCode(uint32_t startPos){
|
||||
if(window < 4) //Make sure we have enough bytes to search.
|
||||
return -1;
|
||||
|
||||
for(unsigned int i = startPos; i < (window - 3); i++){
|
||||
for(unsigned int i = startPos; i < (startPos + window - 3); i++){
|
||||
CircBuffer& buf = *myBuffer;
|
||||
binary a,b,c,d;
|
||||
a = buf[i];
|
||||
|
Loading…
Reference in New Issue
Block a user