general: calculation of duration should not exclude one frame

This commit is contained in:
Jakub Jezek 2022-05-12 11:46:55 +02:00
parent 6156553486
commit 2e5dd57fbf
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -17,7 +17,7 @@ def otio_range_to_frame_range(otio_range):
start = _ot.to_frames(
otio_range.start_time, otio_range.start_time.rate)
end = start + _ot.to_frames(
otio_range.duration, otio_range.duration.rate) - 1
otio_range.duration, otio_range.duration.rate)
return start, end
@ -254,7 +254,7 @@ def get_media_range_with_retimes(otio_clip, handle_start, handle_end):
media_in + source_in + offset_in)
media_out_trimmed = (
media_in + source_in + (
((source_range.duration.value - 1) * abs(
(source_range.duration.value * abs(
time_scalar)) + offset_out))
# calculate available handles