Commits
Commits on
214cdf2befd543569feaaaf45888fe80e40318dfFiltered to crates/ec-ac3/src/eac3.rsClear filter2026-08-14
fix(ac3): rearm the coupling run state when E-AC-3 turns coupling offAhmet Kaan Gümüş · 777214d
fix(ac3): rearm the coupling run state when E-AC-3 turns coupling off Table E1.4's !cplinu branch resets firstcplcos[] and firstcplleak alongside chincpl[], so a frame that switches coupling off and back on again sends its coordinates and leak values unconditionally in the block that revives it. Reading a presence bit there instead desynchronises the rest of the frame: 57 of the 297782 frames of a Dolby Digital Plus track refused with an out-of-range exponent, all of them frames that toggle coupling. That track now decodes to EOF with zero errors.
feat(ac3): Enhanced AC-3 — Annex E syntax, spectral extension and AHTAhmet Kaan Gümüş · 7fa4038
feat(ac3): Enhanced AC-3 — Annex E syntax, spectral extension and AHT Annex E bsi/audfrm/audblk, driving the same bit allocation and transform as AC-3. Spectral extension synthesises the high band by translation, noise blending and envelope scaling; the adaptive hybrid transform brings its six-point DCT with the vector and gain-adaptive quantizers. Two details the published document states ambiguously, resolved against a real Dolby Digital Plus stream: the coupling banding array is indexed by absolute sub-band (like the spectral extension one), and the AHT inverse DCT carries sqrt(2), not the 2 its printed equation shows -- with 2 every AHT channel comes out exactly sqrt(2) too loud. Enhanced coupling and dependent substreams above 5.1 are refused by name.