Skip to content

Commit 914ca31

Browse files
committed
[cli] Round OTIO rational time values to 10 microsecond precision
1 parent 290fec2 commit 914ca31

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scenedetect/_cli/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,12 +536,12 @@ def save_otio(
536536
"duration": {
537537
"OTIO_SCHEMA": "RationalTime.1",
538538
"rate": frame_rate,
539-
"value": (end - start).seconds * frame_rate,
539+
"value": round((end - start).seconds * frame_rate, 6),
540540
},
541541
"start_time": {
542542
"OTIO_SCHEMA": "RationalTime.1",
543543
"rate": frame_rate,
544-
"value": start.seconds * frame_rate,
544+
"value": round(start.seconds * frame_rate, 6),
545545
},
546546
},
547547
"enabled": True,

0 commit comments

Comments
 (0)