summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2015-05-03 22:31:22 +0000
committerRodeo <[email protected]>2015-05-03 22:31:22 +0000
commit6e0247780f466b512c23a425922c05596df43dbe (patch)
treeb66fe60151ae6cfae04bb5df381b9236581ae207
parent5d8aa2e76bfda32b1e6fa404fda95f36231a2b24 (diff)
MacGui: fix endpoints for point-2-point encoding.
libhb expects offsets, not absolute values. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7156 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/HBJob+HBJobConversion.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m
index 2598d5a1c..4778316f2 100644
--- a/macosx/HBJob+HBJobConversion.m
+++ b/macosx/HBJob+HBJobConversion.m
@@ -41,7 +41,7 @@
job->pts_to_start = start_seconds * 90000LL;
// Stop seconds is actually the duration of encode, so subtract the end seconds from the start seconds
int stop_seconds = self.range.secondsStop;
- job->pts_to_stop = stop_seconds * 90000LL;
+ job->pts_to_stop = (stop_seconds - start_seconds) * 90000LL;
}
else if (self.range.type == HBRangeTypeFrames)
{
@@ -52,7 +52,7 @@
job->frame_to_start = start_frame;
// get the frame to stop on from the end frame field
int stop_frame = self.range.frameStop;
- job->frame_to_stop = stop_frame;
+ job->frame_to_stop = stop_frame - start_frame;
}
else if (self.range.type == HBRangePreviewIndex)
{