Files
effectcraft/crates
Dylan M. Taylorandippsec aa623b7577 media: preserve contiguous audio packet placement across rounding and gaps (#4008)
* media: preserve contiguous audio packet placement across rounding and gaps

Port @IppSec's contiguous_starts packet-placement logic from storytold/filmcraft#359 into CraftMediaSource so fixed-frame and Opus packets stay contiguous across 1ms Matroska timestamp rounding and laced blocks, while honoring real silence gaps, overlaps, and delayed first packets on both sequential playback and cold/backward seeks.

Refs: storytold/effectcraft#1546
Refs: storytold/filmcraft#359
Co-authored-by: ippsec <root@ippsec.rocks>

* media: fix opus_packet_samples helper and TrackDecoder borrow

* media: use Footage and re-exported matroska mux types in audio gap tests

---------

Co-authored-by: ippsec <root@ippsec.rocks>
2026-11-20 22:10:32 -05:00
..