diff options
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index e05ea9c1a..bd51c7da6 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -1417,6 +1417,9 @@ namespace Handbrake int position = start_chapter - 1;
+ if (end_chapter > selectedTitle.Chapters.Count)
+ end_chapter = selectedTitle.Chapters.Count;
+
while (position != end_chapter)
{
TimeSpan dur = selectedTitle.Chapters[position].Duration;
|