forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on b8521ccf20bc702255d82a9dc5f6ddff3da67021Filtered to crates/ec-probe/src/decoder.rsClear filter

Today

B5: ec-probe reads PcmS24Be/PcmS32BeAhmet Kaan Gümüş · c776375
B5: ec-probe reads PcmS24Be/PcmS32Be

Demux now maps A_PCM/INT/BIG to S24Be/S32Be, which ec-probe did not read
(is_pcm and pcm() lacked them), so those tracks would fail to decode. Added
the BE arms mirroring the LE ones. Only BE 24/32 PCM tracks are affected.
Evidence: cargo check and clippy ec-probe; orchestrator runs goldens.
B1: ec-probe input bugs (AAC AVI sample count, Xing underflow, Ogg comment offset, window/underflow saturation, FLAC block scan bound and length clamp, WAV A/mu-law block_align 0, duration sample_rate 0 panic, TRCK first-wins)Ahmet Kaan Gümüş · ede1525
B1: ec-probe input bugs (AAC AVI sample count, Xing underflow, Ogg comment offset, window/underflow saturation, FLAC block scan bound and length clamp, WAV A/mu-law block_align 0, duration sample_rate 0 panic, TRCK first-wins)

AVI AAC counted raw_blocks+1 blocks per frame; raw_blocks already holds the count, so it now uses adts_samples (1024 * raw_blocks), matching the ADTS path. AAC-in-AVI pts/dur only changes (halved).
Other fixes only change behaviour on malformed or edge inputs (no panic/underflow) and are not golden-visible on valid fixtures.

2026-11-23

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-20

feat(ec-probe,ec-matroska): register the TrueHD decoder in the unified readerAhmet Kaan Gümüş · 4026107
feat(ec-probe,ec-matroska): register the TrueHD decoder in the unified reader

ec-probe's AudioDecoder now carries a TrueHd arm (mirrors Ac3: send_packet/
receive_frame/flush/reset through the generic Decoder trait), so a TrueHD
track decodes through Reader/AudioDecoder like any other codec instead of
only being named in Reader::unsupported. ec-matroska's muxer writes
CodecId::TrueHd back out as A_TRUEHD (demux already read it in); the
symphonia shim needed no change since it wraps ec_probe::AudioDecoder
generically. Library test updated from "TrueHD is listed unsupported" to
"the TrueHD track in his 7.1 remux decodes, 8ch/48kHz, alongside the AC-3
track"; added a demux->mux->demux codec-id round-trip test in ec-matroska.
fix(aac-sbr-ogg): flush the terminal Vorbis block through to Ogg's granule-stated endAhmet Kaan Gümüş · b966d5e
fix(aac-sbr-ogg): flush the terminal Vorbis block through to Ogg's granule-stated end

EOS was never signalled through ec-probe/the symphonia shim, so the last
Vorbis block's un-overlapped tail (and any un-overlapped audio still sitting
in the last decoded packet) never reached the caller: the reader now hands
every audio track one synthetic, empty terminal packet once the container
itself is exhausted, and AudioDecoder::flush() is what answers it.

Trimming to the container's own granule only ever trusts two points: the
very first packet's granule (a real front pre-roll, if the format has one)
and the last one, applied once at flush -- an interior page's granule marks
where the packet finishing on that page ends, not a ceiling every later
page's cumulative output must stay under, so it is never used as one.
Vorbis's last decoded packet is held back one call rather than handed out
immediately, so that final trim can still reach into it.

2026-08-14

feat(probe): one sniffing reader and one decoder registry for every audio fileAhmet Kaan Gümüş · 51de303
feat(probe): one sniffing reader and one decoder registry for every audio file

Content decides the format, never the extension: RIFF, fLaC, OggS, EBML
and ftyp by magic, MP3 and ADTS by three chaining frames after any ID3
tag (a lone MPEG audio header turns up inside AAC payload often enough
that a single sync is not evidence).

WAV, MP3, FLAC and ADTS are demuxed here — one walk, four framings, a
frame index built on the first seek so a landing is sample-accurate.
Ogg, mp4 and Matroska are delegated to their own crates: there is one
EBML parser in this family and it is ec-matroska (cargo tree -p ec-probe
shows the edge). Everything is served on the one reader the file was
opened with, however many times it is seeked.

Reader::seek answers where it actually landed, which is the number a
segment start is trimmed against. Reader::unsupported names every audio
track with no decoder and why. Cover art is not a video track and never
appears as one. Tags: ID3v1/v2 and Vorbis comments; mp4 ilst is not read
(edith reads no metadata today) and says so in the module docs.

Verified: 26-file fixture matrix (format, codec, channels, packet counts
against ffprobe, sample counts against ffmpeg), 100 random seeks per
file each landing at or before its target within the container's own
granularity, and a 9-file sweep of the real library covering aac, ac3,
eac3, opus, mp3 and a TrueHD remux whose unplayable track is listed.