Commits
Commits on
cfa93c02e761bfaebd1cf8a25dfb113ccbaeba7aFiltered to crates/ec-ogg/src/mapping.rsClear filter2026-08-14
feat(ec-ogg): Ogg demux/mux with Vorbis, Opus and FLAC mappingsAhmet Kaan Gümüş · 47772cb
feat(ec-ogg): Ogg demux/mux with Vorbis, Opus and FLAC mappings RFC 3533 pages both ways: lacing (255-runs and the zero terminator), packet reassembly across continuations, unreflected page CRC with resync-on-damage, granule positions per mapping, BOS/EOS, and seek by granule bisection. Timing lives in the mapping, not in Ogg: Vorbis and FLAC count samples at the stream rate, Opus counts 48 kHz samples including its pre-skip and states per-packet durations in the TOC byte. Packets carry the page granule they end on as side data, which is what lets a remux reproduce positions the demuxer could not otherwise express. Verified against ffprobe/ffmpeg on the nine Ogg fixtures: packet counts and durations match, and every fixture remuxes to audio that decodes byte for byte identical to the source. feat(shims/oxideav-ogg): mux surface over ec-ogg xiph_lace, open_concrete and set_page_target_bytes beside the oxideav_core::Muxer methods, with the replica's "pts is the granule position" convention translated here rather than at the call site.