summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Scan
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-06-14 19:56:44 +0100
committersr55 <[email protected]>2018-06-14 19:56:44 +0100
commit0c377e599c899845712c22da2d3470df98ab14a7 (patch)
tree8543e3612e7ec5db154af415c8db7b9490234363 /win/CS/HandBrakeWPF/Services/Scan
parentcd533d4ae47317ffef69bcea6ec69d2a711b7798 (diff)
WinGui: Fix an integer overflow in the UI layer for the start/stop controls. Fixes #1327
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Scan')
-rw-r--r--win/CS/HandBrakeWPF/Services/Scan/Model/Title.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Scan/Model/Title.cs b/win/CS/HandBrakeWPF/Services/Scan/Model/Title.cs
index 31b6a1fe7..144a1ed26 100644
--- a/win/CS/HandBrakeWPF/Services/Scan/Model/Title.cs
+++ b/win/CS/HandBrakeWPF/Services/Scan/Model/Title.cs
@@ -181,7 +181,7 @@ namespace HandBrakeWPF.Services.Scan.Model
/// <param name="startPoint">The Start Point (Chapters)</param>
/// <param name="endPoint">The End Point (Chapters)</param>
/// <returns>A Timespan</returns>
- public TimeSpan CalculateDuration(int startPoint, int endPoint)
+ public TimeSpan CalculateDuration(long startPoint, long endPoint)
{
IEnumerable<Chapter> chapers =
this.Chapters.Where(c => c.ChapterNumber >= startPoint && c.ChapterNumber <= endPoint);