summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-06-01 09:37:18 +0000
committerritsuka <[email protected]>2015-06-01 09:37:18 +0000
commit00a3380eba0546067631a4a46ab653dd4dd29e88 (patch)
tree3abb5bf8de3e5f15ef29e0d18a240fda74bc3b1d /macosx
parent1b5f57b0ae412640a75eeb6a76a7feff43b4939a (diff)
[0.10.x] MacGui: fix a double to int conversion, the end frame textfield had the wrong number of frames.
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@7253 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index c54a2a35d..c19aca4d5 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -4290,7 +4290,7 @@ fWorkingCount = 0;
[fSrcTimeEndEncodingField setStringValue: [NSString stringWithFormat: @"%d", duration]];
/* For point a to point b frame encoding, set the start and end fields to 0 and the title duration * announced fps in seconds respectively */
[fSrcFrameStartEncodingField setStringValue: [NSString stringWithFormat: @"%d", 1]];
- [fSrcFrameEndEncodingField setStringValue: [NSString stringWithFormat: @"%d", (title->duration / 90000.) * (title->rate / (double)title->rate_base)]];
+ [fSrcFrameEndEncodingField setStringValue: [NSString stringWithFormat: @"%d", (int)((title->duration / 90000.) * (title->rate / (double)title->rate_base))]];
/* Update encode start / stop variables */