]> git.sesse.net Git - ffmpeg/commitdiff
aacdec: use float_dsp in apply_independent_coupling
authorLynne <dev@lynne.ee>
Fri, 12 Apr 2019 21:50:59 +0000 (22:50 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 3 May 2019 15:12:22 +0000 (17:12 +0200)
Could not be used in apply_dependent_coupling because of alignment issues.

libavcodec/aacdec.c

index d394700cdc857fa9386fc60ed2509fd869461f7f..c606ad40a9a10e19ccc386f8813b1b028d26346c 100644 (file)
@@ -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"