mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
* craft-timeline: carry overflowing time code fields before drop-frame counting A drop-frame time code with a field past its range (01;00;00;30) was counted as non-drop frames. The fields now carry into the next one first, so it reads as the frame 01;00;01;00 names. Non-drop overflow is counted as before. Ported from the time part of storytold/filmcraft#4096 (also in #4088). * craft-timeline: FrameRate::frames_between counts the frames between two boundaries At a rate whose frame is not a whole number of ticks (11, 13, 23.5 fps), the ticks between two frame boundaries can be one fewer than the exact length of those frames, so frame_at(end - start) reads one short. frames_between counts frame_at(end) - frame_at(start), saturating. Ported from the time part of storytold/filmcraft#4291. --------- Co-authored-by: JonRC <jonarc06@gmail.com> Co-authored-by: ItsJustChrisE <53130043+ItsJustChrisE@users.noreply.github.com>