Meet minimum credit requirement

This commit is contained in:
rlauuzo 2024-05-23 18:07:31 +02:00 committed by GitHub
parent 9962d3bd4b
commit 9af0e3f864
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,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;