Prevent seeking past end of stream, which causes a huge # of Seeks once EOF is reached, if we try and request frame #s too large for the file

This commit is contained in:
Jonathan Thomas
2022-11-23 12:45:10 -06:00
parent 5aa9487e05
commit 70db06947d
2 changed files with 5 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ using namespace openshot;
int main(int argc, char* argv[]) {
// FFmpeg Reader performance test
FFmpegReader r9("/home/jonathan/Downloads/pts-test-files/broken-files/lady-talking-1.mp4");
FFmpegReader r9("/home/jonathan/Downloads/project-29/f5b6c409-1ecc-49cd-8660-478acf152dce.webm");
r9.Open();
for (long int frame = 1; frame <= r9.info.video_length; frame++)
{