diff --git a/Source/IO/AuIOPipeProcessor.cpp b/Source/IO/AuIOPipeProcessor.cpp index 643cbb7f..d5e5e8c9 100644 --- a/Source/IO/AuIOPipeProcessor.cpp +++ b/Source/IO/AuIOPipeProcessor.cpp @@ -356,7 +356,7 @@ namespace Aurora::IO auto uInterframeProgress = this->GetBytesProcessedInterframe(); - if (bIsCullingLastFrame = (canRead2 + uInterframeProgress > this->uBytesWrittenLimit_)) + if (bIsCullingLastFrame = (this->uBytesWrittenLimit_ && canRead2 + uInterframeProgress > this->uBytesWrittenLimit_)) { auto uLastFrameBytes = this->uBytesWrittenLimit_ - uInterframeProgress; auto uAbsDataToRead = AuMin(canRead, uLastFrameBytes);