summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Parsing/Title.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Parsing/Title.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs b/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
index 51c2f11c3..4bb47f201 100644
--- a/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
+++ b/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
@@ -245,10 +245,10 @@ namespace HandBrake.ApplicationServices.Parsing
public TimeSpan CalculateDuration(int startPoint, int endPoint)
{
TimeSpan duration = TimeSpan.FromSeconds(0.0);
- if (startPoint != 0 && endPoint != 0 && endPoint <= this.Chapters.Count)
+ if (endPoint <= this.Chapters.Count)
{
for (int i = startPoint; i <= endPoint; i++)
- duration += this.Chapters[i - 1].Duration;
+ duration += this.Chapters[i].Duration;
}
return duration;