fix negative index
This commit is contained in:
parent
90ec690e27
commit
2b153267fb
@ -113,7 +113,7 @@ public class ChapterAnalyzer : IMediaFileAnalyzer
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Check all chapters in reverse order, skipping the virtual chapter
|
// 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 current = chapters[i];
|
||||||
var next = chapters[i + 1];
|
var next = chapters[i + 1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user