diff options
author | ritsuka <[email protected]> | 2015-05-07 15:33:13 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-05-07 15:33:13 +0000 |
commit | 3217ba5b96189802755b90d098d29c2f900dfcbe (patch) | |
tree | 2ed1e4a7fbd497d0697664339e420e1801cbd990 /macosx/HBRange.m | |
parent | 878199667e6a7c79ff39b3d48127324fcf2c53ad (diff) |
MacGui: wrap more hb_title properties in HBTitle.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7162 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBRange.m')
-rw-r--r-- | macosx/HBRange.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBRange.m b/macosx/HBRange.m index d4e785b30..ae09edbe7 100644 --- a/macosx/HBRange.m +++ b/macosx/HBRange.m @@ -88,7 +88,7 @@ NSString *HBRangeChangedNotification = @"HBRangeChangedNotification"; else if (self.type == HBRangeTypeFrames) { hb_title_t *title = self.title.hb_title; - int duration = (self.frameStop - self.frameStart) / (title->vrate.num / (double)title->vrate.den); + int duration = (int) ((self.frameStop - self.frameStart) / (title->vrate.num / (double)title->vrate.den)); return [NSString stringWithFormat: @"%02d:%02d:%02d", duration / 3600, ( duration / 60 ) % 60, duration % 60]; } |