Commits
Commits on
e18142d2a629d664e03400a0a128b976e13c0159Filtered to crates/ec-ac3/src/decoder.rsClear filterToday
S11: drop doc comments added on Syntax::of and downmix_gains (no-comments rule)Ahmet Kaan Gümüş · 96cce03Browse files
S11: ac3 fold split: downmix_gains builds the per-channel matrix; fold applies it (same ops, same order)Ahmet Kaan Gümüş · a4831bdBrowse files
S11: ac3 one Syntax::of(data) for the bsid rule (bsid = byte 5 >> 3; <= 10 is AC-3) at the five call sitesAhmet Kaan Gümüş · 6789dd1Browse files
S11: ac3 merge layout_of into layout (one place maps positions to ChannelLayout)Ahmet Kaan Gümüş · e478793Browse files
U12: ec-ac3 one read_optional (bsi, reused by eac3) and one block-count const (AC3_BLOCKS_PER_FRAME)Ahmet Kaan Gümüş · 8122b34Browse files
U12: ec-ac3 drop stack_budget.rs (size-assert test duplicating the decoder layout) and unused options_mutAhmet Kaan Gümüş · 9d1d075Browse files
ec-ac3: place a dependent substream's channels like ffmpeg: the k-th channel-map entry takes output slot ff_ac3_dec_channel_map[acmod][lfeon][k] (ac3dec.c extended_channel_map); the_great_wall_7.1 (3/1 dependent, map Ls Rs Lrs/Rrs) had BL and SR swapped vs ffmpegAhmet Kaan Gümüş · acbfd4cBrowse files
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-09-12
🛡️ fix(ac3): a packet tail that begins a syncframe is refused by name, never dropped in silenceAhmet Kaan Gümüş · 49e4498
🛡️ fix(ac3): a packet tail that begins a syncframe is refused by name, never dropped in silence decode_frame decoded the first substream and discarded the rest of the packet (let _ = consumed) -- the shape a Matroska block for 7.1 DD+ really carries (independent substream plus its dependent): 1536 samples out, the extension channels gone, no error. Old decoders of record walked that tail, so the silent drop was a regression hiding under the named refusals. Now reject_tail runs after every successful frame: padding that is not itself a syncframe (the container slack the spec allows) still decodes sample-for-sample like the bare frame, but a tail that begins a syncframe is Unsupported naming what it is -- an E-AC-3 dependent substream in the tail (the 7.1 extension channels) or a second syncframe altogether (one packet is one frame and its substreams; hand frames over one at a time). A 0x0B77 coincidence that parses as no header stays junk. Witnesses in decode_matrix: concatenated real fixture frames (AC-3 and E-AC-3) refuse as second syncframes; the E-AC-3 tail flipped to dependent refuses with the dependent wording; padded frames decode bit-identically to bare ones. Fixture matrix vs ffmpeg stays green.
2026-08-14
fix(ac3): switch the spectral extension noise with the dither optionAhmet Kaan Gümüş · 6432e08
fix(ac3): switch the spectral extension noise with the dither option §E3.6.4.2.4's noise() is a zero-mean unit-variance source the standard leaves to the implementation, exactly like §7.3.4's dither: two conformant decoders differ by it and by nothing else. It now follows the same option, so a comparison against another decoder can isolate what the standard does specify, and the default still generates both. On the Dolby Digital Plus track that uses spectral extension this is the whole remaining difference: 0.9988 per-channel correlation with both decoders' noise in, 0.9994 with it out.
feat(ac3): AC-3 decoder — coupling, rematrixing, DRC and the public surfaceAhmet Kaan Gümüş · 5bc2be2
feat(ac3): AC-3 decoder — coupling, rematrixing, DRC and the public surface One packet is one syncframe; frames come out as interleaved f32 in the family's channel order, with an optional section 7.8 Lo/Ro downmix for callers that want stereo. Dynamic range compression is applied by default because section 7.7.1 says a decoder shall, with drc_scale to turn it down; dialnorm is surfaced and never applied. Every fixture decodes to a per-channel correlation of 1.000000 against ffmpeg (mono, stereo and 5.1 at 32/44.1/48 kHz).