Meet minimum credit requirement

This commit is contained in:
rlauuzo 2024-05-23 18:07:31 +02:00 committed by TwistedUmbrellaX
parent 58f2c0ce0f
commit 1f2088453b

View File

@ -134,7 +134,7 @@ public class BlackFrameAnalyzer : IMediaFileAnalyzer
{
// Start by analyzing the last N minutes of the file.
var upperLimit = searchStart;
var lowerLimit = searchStart - searchDistance;
var lowerLimit = Math.Max(searchStart - searchDistance, minimumCreditsDuration);
var start = TimeSpan.FromSeconds(upperLimit);
var end = TimeSpan.FromSeconds(lowerLimit);
var firstFrameTime = 0.0;