mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Address feedback from PR.
This commit is contained in:
parent
a3c9106f35
commit
412b4b8d3a
1 changed files with 4 additions and 1 deletions
|
|
@ -293,10 +293,13 @@ def get_media_range_with_retimes(otio_clip, handle_start, handle_end):
|
|||
# to preserve media range
|
||||
|
||||
# Compute new source range based on available rate.
|
||||
|
||||
# Backward-compatibility for Hiero OTIO exporter.
|
||||
# NTSC compatibility might introduce floating rates, when these are
|
||||
# not exactly the same (23.976 vs 23.976024627685547)
|
||||
# this will cause precision issue in computation.
|
||||
# Round to 2 decimals for comparison.
|
||||
# Currently round to 2 decimals for comparison,
|
||||
# but this should always rescale after that.
|
||||
rounded_av_rate = round(available_range_rate, 2)
|
||||
rounded_src_rate = round(source_range.start_time.rate, 2)
|
||||
if rounded_av_rate != rounded_src_rate:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue