fix negative index

This commit is contained in:
rlauuzo 2024-05-01 18:16:07 +02:00 committed by GitHub
parent c4c50ae79f
commit c20370c47f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,7 @@ public class ChapterAnalyzer : IMediaFileAnalyzer
});
// Check all chapters in reverse order, skipping the virtual chapter
for (int i = chapters.Count - 2; i >= 0; i--)
for (int i = chapters.Count - 2; i > 0; i--)
{
var current = chapters[i];
var previous = chapters[i - 1];