aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2019-04-12 22:50:59 +0100
committerPaul B Mahol <onemda@gmail.com>2019-05-03 17:12:22 +0200
commit19f1eaa84fcec6293d36249929994beabe700b3e (patch)
treee189a35598354985f633796509fcdb50413dff12
parent6223d076e3d0b887282a3ac67213a6a1563b71df (diff)
downloadffmpeg-19f1eaa84fcec6293d36249929994beabe700b3e.tar.gz
aacdec: use float_dsp in apply_independent_coupling
Could not be used in apply_dependent_coupling because of alignment issues.
-rw-r--r--libavcodec/aacdec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index d394700cdc..c606ad40a9 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -247,14 +247,12 @@ static void apply_independent_coupling(AACContext *ac,
SingleChannelElement *target,
ChannelElement *cce, int index)
{
- int i;
const float gain = cce->coup.gain[index][0];
const float *src = cce->ch[0].ret;
float *dest = target->ret;
const int len = 1024 << (ac->oc[1].m4ac.sbr == 1);
- for (i = 0; i < len; i++)
- dest[i] += gain * src[i];
+ ac->fdsp->vector_fmac_scalar(dest, src, gain, len);
}
#include "aacdec_template.c"