diff options
author | Lynne <dev@lynne.ee> | 2024-01-29 04:31:43 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-04-27 11:12:07 +0200 |
commit | 134dba9544f4251ebf5fbbae72f2cddc390ac195 (patch) | |
tree | ce38b2e35ed54bfba205061a518b02766a669fa2 /libavcodec/x86/opusdsp_init.c | |
parent | a2cdb2f5be065a9da87391e2a5c0ae0051219bad (diff) | |
download | ffmpeg-134dba9544f4251ebf5fbbae72f2cddc390ac195.tar.gz |
opusdsp: add ability to modify deemphasis constant
xHE-AAC relies on the same postfilter mechanism
that Opus uses to improve clarity (albeit with a steeper
deemphasis filter).
The code to apply it is identical, it's still just a
simple IIR low-pass filter. This commit makes it possible
to use alternative constants.
Diffstat (limited to 'libavcodec/x86/opusdsp_init.c')
-rw-r--r-- | libavcodec/x86/opusdsp_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/opusdsp_init.c b/libavcodec/x86/opusdsp_init.c index 582fbb4f0c..66d6839589 100644 --- a/libavcodec/x86/opusdsp_init.c +++ b/libavcodec/x86/opusdsp_init.c @@ -23,7 +23,7 @@ #include "libavcodec/opusdsp.h" void ff_opus_postfilter_fma3(float *data, int period, float *gains, int len); -float ff_opus_deemphasis_fma3(float *out, float *in, float coeff, int len); +float ff_opus_deemphasis_fma3(float *out, float *in, float coeff, const float *weights, int len); av_cold void ff_opus_dsp_init_x86(OpusDSP *ctx) { |