Commits
Commits on
84fa44cfe66f76e22181d4ff8bc06ef6ea78db07Filtered to crates/ec-ac3/tests/decode_matrix.rsClear filter2026-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
test(ac3): fixture matrix against ffmpeg, header surface and no-panic floorAhmet Kaan Gümüş · 2d69f73
test(ac3): fixture matrix against ffmpeg, header surface and no-panic floor The matrix decodes every generated ac3/eac3 fixture and compares per channel against ffmpeg with dither off, which is what isolates everything but the two decoders' implementation-defined noise. Alongside it: the exact header calls a container makes, the downmix, and a damage sweep that truncates and corrupts every byte of a frame. The example is the harness those numbers come from -- it also prints the decode speed, 313-514x realtime for 5.1 on real Blu-ray and streaming tracks.