Correct buffer size when writing a video range.

This commit is contained in:
Unknown W. Brackets 2016-01-17 12:45:28 -08:00
parent f60aef2e16
commit 48729b90d8

View file

@ -799,7 +799,8 @@ int MediaEngine::writeVideoImageWithRange(u32 bufferPtr, int frameWidth, int vid
delete [] imgbuf;
}
return videoImageSize;
// Account for the y offset as well.
return videoImageSize + videoLineSize * ypos;
#endif // USE_FFMPEG
return 0;
}