Fix rouding issue with extract_otio_review

This commit is contained in:
robin@ynput.io 2025-01-14 13:17:39 +01:00
parent e90ca81ede
commit 951fd51ab6

View file

@ -147,7 +147,6 @@ class ExtractOTIOReview(
self.actual_fps = available_range.duration.rate
start = src_range.start_time.rescaled_to(self.actual_fps)
duration = src_range.duration.rescaled_to(self.actual_fps)
src_frame_start = src_range.start_time.to_frames()
# Temporary.
# Some AYON custom OTIO exporter were implemented with
@ -157,7 +156,7 @@ class ExtractOTIOReview(
if (
is_clip_from_media_sequence(r_otio_cl)
and available_range_start_frame == media_ref.start_frame
and src_frame_start < media_ref.start_frame
and start.to_frames() < media_ref.start_frame
):
available_range = otio.opentime.TimeRange(
otio.opentime.RationalTime(0, rate=self.actual_fps),