Repository navigation
The FAAD2 library is now a thin compatibility shim over libfaad3 from FAAC 3.0. It keeps the libfaad.so.2 ABI and the NeAACDec API; the command-line decoder is now faad from FAAC. Read the first items below before upgrading.
Moving from FAAD2 to FAAD3
Applications that can link libfaad3 directly get the full API and the faster decoder. See Moving from FAAD2 to FAAD3 for the differences and how to migrate.
Windows binaries
This release has no Windows download. The shim is a library only and the faad command-line decoder now comes from FAAC. For Windows builds of faad, faac, faam and faar, with the libfaad3 library, download FAAC 3.0. To use this shim on Windows, build it with CMake against FAAC (see the README).
Changes
- Build against FAAC 3.0 (libfaad3 and libfaar from the
external/faacsubmodule). - Replace the legacy decoder with a library-only
NeAACDecAPI shim over libfaad3, retaining thelibfaad.so.2ABI and FAAD2 channel order/positions. The CLI now ships with libfaad3. - Drop Main/LTP/SSR/LD/ER profiles, DRM, fixed-point decoding, LATM, ADIF, and raw AAC without ASC. Ignore
useOldADTSFormat;InitDRMremains exported but reports failure. - Apply dynamic range control and programme level normalisation as before, including the 20 dB attenuation of streams without a programme reference level.
- Find libfaad3 and libfaar through the FAAC CMake package: set
CMAKE_PREFIX_PATHto the FAAC install (PKG_CONFIG_PATHis no longer consulted). -DFAAC_USE_BUNDLED_SOURCE=ON compiles theexternal/faacsubmodule into the shim instead. - Add tests that compare the shim with FAAD2 2.11.4 stream by stream: results of every call, delay and signal-to-noise ratio.
- Report 8 as 7 channels in
NeAACDecAudioSpecificConfigand setdownSampledSBRfor unsignalled ASCs above 24 kHz, as FAAD2 did. - Upsample AAC-LC streams without SBR data at or below 24 kHz to twice the rate with libfaar, as FAAD2 did for implicit SBR, unless
dontUpSampleImplicitSBRis set. The output lags by 962 samples per channel, as before. - Return implicit SBR above 24 kHz at the core rate by decimating the full-rate output with libfaar, as FAAD2 did. libfaar's lookahead makes the output lag FAAD2's by 73 samples; FAAD2's 32-band synthesis did not need that lead.
- Report mono streams as stereo and return their frames as dual-mono, as FAAD2 2.11.3 did for implicit PS signalling, instead of FAAD2 2.11.4's single channel. Players that open their sink from
NeAACDecInitplayed HE-AACv2 ADTS streams, whose header says mono, in slow motion. - Fail ADTS frames written for another sampling rate than the stream's first with error 32, as FAAD2 did.
- Point the compile-time notice in the legacy
faad.hto libfaad3, and stop the build from dropping the semicolons of the generatedfaad.h. - Require libfaar (with libfaad3) to build. Set
FAAR_CMAKE_TARGETwhen a parent project provides it; the Bazel build needs Bazel 7.
Full changelog: 2.11.4...2.12.0