FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Merge remote-tracking branch 'upstream/main' into gap-mkv-codec-delay
vangel763b48565ecb40
diff --cc crates/codecs/src/mkv.rsindex c3ca0355d,9e0b6c0ad..2f897ffbe--- a/crates/codecs/src/mkv.rs+++ b/crates/codecs/src/mkv.rs@@@ -68,10 -68,10 +68,10 @@@ pub struct MkvSource////// Block timestamps are quantised to `TimestampScale` (usually 1 ms), so they are only accurate to a/// tick: a 1024-sample AAC frame at 48 kHz lasts 21.33 ms. Packets that all decode to the same- /// length (AAC, MPEG audio, AC-3) therefore run on from one another, resynchronising to the+ /// length (AAC, MPEG audio, AC-3, E-AC-3) therefore run on from one another, resynchronising to the/// timestamp only across gaps of more than half a packet (and more than two ticks); see/// [`crate::audio::contiguous_starts`]. Opus packets: [`opus_starts`]. Other codecs start at their-/// timestamps.+/// timestamps. Timestamps are taken with the exact `CodecDelay` off (see [`stamp_to_samples`]).fn audio_starts(file: &MkvFile, bytes: &crate::Src, ti: usize, rate: i64) -> Vec<i64> {use crate::audio::{FixedFrames, PacketTime, contiguous_starts, fixed_packet_samples};let Some(t) = file.tracks.get(ti) else { return Vec::new() };