forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 6c331af1f112e445f4e7ba25ab39531b85ca172eFiltered to crates/ec-flac/src/decode.rsClear filter

Today

B10: ec-flac decode: resume after a corrupt frame at start+1, shared check_same_formatAhmet Kaan Gümüş · ed1f730
B10: ec-flac decode: resume after a corrupt frame at start+1, shared check_same_format

next_block left pos at the frame start on Err, so a caller that retried
after Corrupt re-parsed the same frame forever. Set pos = start + 1 up front;
the success path still overwrites it with the frame end.
decode_all's format-change check moves to check_same_format, which
send_packet reuses. expect on block.header becomes ok_or.
Evidence: cargo check/clippy ec-flac; golden flac and xiph_vectors to run by orchestrator.
FLAC framing: frame end is the first sync whose preceding frame passes its footer CRC-16, not the first header-plausible syncAhmet Kaan Gümüş · 65e0b1a
FLAC framing: frame end is the first sync whose preceding frame passes its footer CRC-16, not the first header-plausible sync

flac-5.1-44100.flac (pinned ffmpeg 9.0.2, sha256 matches fixtures.sha256): packet 7 is at byte 45447, 5908 bytes. A sync-like header at byte 47501 inside the audio passes header CRC-8, so the probe cut the packet there and the subframe decode ran out of data (need more data). ffprobe lists the packet as 5908 bytes; the footer CRC-16 over [45447,51353) equals the stated 53762 at 51355 and does not match at 47501. Falls back to the first plausible sync when no candidate verifies, so damaged streams behave as before

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

feat(flac): ec-flac decoder + encoder and the flacenc shimAhmet Kaan Gümüş · 339321d
feat(flac): ec-flac decoder + encoder and the flacenc shim

Decoder: metadata blocks, frame headers (fixed and variable blocking),
constant/verbatim/fixed/LPC subframes to order 32, escaped and
Rice-coded partitions, all three stereo decorrelations, 8..32-bit,
CRC-8 + CRC-16 verified per frame, STREAMINFO MD5 check, seek-table
positioning, and frame-sync resynchronisation for streams that start
mid-file. Malformed input errors, never panics.

Encoder: fixed block size, wasted-bit detection, fixed predictors,
LPC (Tukey window, Levinson-Durbin, error-feedback quantisation),
exact-cost Rice partition search, per-block stereo decision, 1..8
channels and 4..32 bits, with the input MD5 in STREAMINFO.

shims/flacenc carries package flacenc 0.5.1 over ec-flac for the exact
surface the replica calls (component::BitRepr, error::Verify,
config::Encoder, source::MemSource, encode_with_fixed_block_size,
bitsink::ByteSink).

Verified: 64/64 Xiph subset vectors decode bit-exact vs ffmpeg,
6/6 decodable uncommon vectors bit-exact, faulty vectors error out;
14/14 fixture encodes decode back bit-exact through ffmpeg at 0.961x
the size of ffmpeg's default FLAC.