MPEG VideoBuffer: fix search range

This commit is contained in:
Stefan Pöschel 2015-12-31 12:30:11 +01:00
parent f4fbf0c591
commit fc10f8f84f

View File

@ -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];