From: ritsuka Date: Mon, 1 Jun 2015 09:37:18 +0000 (+0000) Subject: [0.10.x] MacGui: fix a double to int conversion, the end frame textfield had the... X-Git-Tag: 0.10.2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00a3380eba0546067631a4a46ab653dd4dd29e88;p=handbrake [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 --- 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 */