diff options
Diffstat (limited to 'macosx/HBJob+HBJobConversion.m')
-rw-r--r-- | macosx/HBJob+HBJobConversion.m | 4 |
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) { |