Skip to content

to_timecode(): default rate to the RationalTime's own rate#10

Merged
TroyHernandez merged 2 commits into
mainfrom
feature/to-timecode-default-rate
Jun 7, 2026
Merged

to_timecode(): default rate to the RationalTime's own rate#10
TroyHernandez merged 2 commits into
mainfrom
feature/to-timecode-default-rate

Conversation

@TroyHernandez

Copy link
Copy Markdown
Contributor

Exposes OTIO's no-rate to_timecode overload. rate now defaults to rate(rt) (NULL sentinel avoids the recursive default-argument reference), so to_timecode(RationalTime(17982, 30000/1001)) infers drop-frame and returns "00:10:00;00". Explicit rate/drop_frame unchanged. 224 assertions pass; check unchanged (2 baseline NOTEs).

Exposes OTIO's no-rate to_timecode overload: `rate` now defaults to `rate(rt)`
(via a NULL sentinel to avoid the recursive default-argument reference), so
`to_timecode(RationalTime(17982, 30000/1001))` infers drop-frame and returns
"00:10:00;00". Explicit rate/drop_frame still work unchanged.
@TroyHernandez TroyHernandez merged commit f82fbf3 into main Jun 7, 2026
1 check passed
@TroyHernandez TroyHernandez deleted the feature/to-timecode-default-rate branch June 7, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant