forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/ec-ogg/src/demux.rsClear filter

2026-10-23

Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23)

On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local
repository with all of its history. This commit restores the working tree
from the newest surviving copy, the host-c server lane mirror. That mirror
matches local main as of the testcut Phase 2 reports, including the tool
cache, the nextest fast profile and changed-crates.sh. The history before
this commit was not recovered.

2026-08-21

2026-08-14

fix(ogg): a seek lands where its packets can say what time it isAhmet Kaan Gümüş · 5a98e1b
fix(ogg): a seek lands where its packets can say what time it is

A granule position is where a page ends, and Vorbis and FLAC packets
state no duration of their own, so every packet of the page a seek
landed on came out with no timestamp at all — a seek that cannot say
where it landed. The landing is now the page after the one the bisection
found, whose first sample is that page's granule exactly, and the reader
never resumes inside the header pages.

Measured on a 3-second Vorbis fixture: seeking to 2.6 s reported 0.000 s
before and 2.033 s (the page boundary before the target) after.
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.