Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Stephan Steinbach <[email protected]>
Signed-off-by: Nikita Glukhov <[email protected]>
  • Loading branch information
ghost-luck and ssteinbach authored Oct 31, 2022
1 parent 2018a7b commit d3c9d00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/py-opentimelineio/opentimelineio/adapters/cmx_3600.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,10 @@ def __init__(
line.source_in.rate
)
elif timing_effect.effect_name == "LinearTimeWarp":
value = clip.trimmed_range().duration.value * timing_effect.time_scalar - 1
value = (
clip.trimmed_range().duration.value * timing_effect.time_scalar
- 1
)
line.source_out = line.source_in + opentime.RationalTime(value, rate)

range_in_timeline = clip.transformed_time_range(
Expand Down

0 comments on commit d3c9d00

Please sign in to comment.