]> granicus.if.org Git - handbrake/commitdiff
[0.10.x] MacGui: fix a double to int conversion, the end frame textfield had the...
authorritsuka <damiog@gmail.com>
Mon, 1 Jun 2015 09:37:18 +0000 (09:37 +0000)
committerritsuka <damiog@gmail.com>
Mon, 1 Jun 2015 09:37:18 +0000 (09:37 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@7253 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.m

index c54a2a35d1625a48c7b00c6199f7e5bfca033079..c19aca4d5941b920ee197bdeecdb790d93a9c802 100644 (file)
@@ -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 */