From 63afd0b72aa776ec220c0394107a6ef3fc8cabd2 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 27 Oct 2022 09:39:05 +0200 Subject: [PATCH] Fix MP4 reading from very fast remotes --- src/input/input_mp4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/input_mp4.cpp b/src/input/input_mp4.cpp index c8c8c21f..6a3f9a37 100644 --- a/src/input/input_mp4.cpp +++ b/src/input/input_mp4.cpp @@ -226,7 +226,7 @@ namespace Mist{ // first we get the necessary header parts size_t tNumber = 0; activityCounter = Util::bootSecs(); - while (inFile && keepRunning()){ + while ((readBuffer.size() >= 16 || inFile) && keepRunning()){ //Read box header if needed while (readBuffer.size() < 16 && inFile && keepRunning()){inFile.readSome(16, *this);} //Failed? Abort.