Commit 43918c10 authored by François Cartegnie's avatar François Cartegnie 🤞

contribs: faad2: disable DRC extensions

Implementation is broken due to use of
arbitrary reference level instead of
normalized level.
Fallback to not better than libav.
fixes #9629
parent 587830af
diff -Naur faad2-2.7.orig/libfaad/specrec.c faad2-2.7/libfaad/specrec.c
--- faad2-2.7.orig/libfaad/specrec.c 2009-01-27 00:51:15.000000000 +0100
+++ faad2-2.7/libfaad/specrec.c 2017-02-23 10:31:40.527397266 +0100
@@ -1000,12 +1000,13 @@
spec_coef, hDecoder->frameLength);
/* drc decoding */
+#if 0
if (hDecoder->drc->present)
{
if (!hDecoder->drc->exclude_mask[sce->channel] || !hDecoder->drc->excluded_chns_present)
drc_decode(hDecoder->drc, spec_coef);
}
-
+#endif
/* filter bank */
#ifdef SSR_DEC
if (hDecoder->object_type != SSR)
@@ -1241,6 +1242,7 @@
spec_coef2, hDecoder->frameLength);
/* drc decoding */
+#if 0
if (hDecoder->drc->present)
{
if (!hDecoder->drc->exclude_mask[cpe->channel] || !hDecoder->drc->excluded_chns_present)
@@ -1248,7 +1250,7 @@
if (!hDecoder->drc->exclude_mask[cpe->paired_channel] || !hDecoder->drc->excluded_chns_present)
drc_decode(hDecoder->drc, spec_coef2);
}
-
+#endif
/* filter bank */
#ifdef SSR_DEC
if (hDecoder->object_type != SSR)
......@@ -20,6 +20,7 @@ faad2: faad2-$(FAAD2_VERSION).tar.gz .sum-faad2
ifndef HAVE_FPU
$(APPLY) $(SRC)/faad2/faad2-fixed.patch
endif
$(APPLY) $(SRC)/faad2/faad2-disable-drc.patch
cd $(UNPACK_DIR) && $(CC) -iquote . -E - </dev/null || sed -i 's/-iquote /-I/' libfaad/Makefile.am
$(MOVE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment