forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 03dc6e9978cbbbba112bf5c6ad925845ede8c744Filtered to crates/ec-alac/src/lib.rsClear filter

2026-08-14

feat(alac): ALAC decoder, bit-exact against ffmpeg on 16 and 24 bitAhmet Kaan Gümüş · d60d66b
feat(alac): ALAC decoder, bit-exact against ffmpeg on 16 and 24 bit

Clean-room from the published ALAC format description: magic cookie in
all three shapes a container states it, adaptive-Golomb residuals with
the zero-run mode, the sign-adapting LPC predictor, the mid/side un-mix
and the shifted low bytes of a 24-bit stream. Decode only.

Two things the format description does not spell out were measured
against ffmpeg's own encoder output and are commented where they are
used: a channel element's predictor plan starts 39 bits into the frame
(the mix pair is stated by a mono element too), and the predictor's
history window is out[j-k], not out[j-1-k].

Oracle: 8 fixtures (mono/stereo/5.1, 44.1 and 48 kHz, 16 and 24 bit)
decode byte-for-byte identical to ffmpeg's decoder.