git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@7253
b64f7644-9d1e-0410-96f1-
a4d463321fa5
[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 */