[FFmpeg-cvslog] aacdec: use float_dsp in apply_independent_coupling

Lynne git at videolan.org
Fri May 3 18:20:55 EEST 2019


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Fri Apr 12 22:50:59 2019 +0100| [19f1eaa84fcec6293d36249929994beabe700b3e] | committer: Paul B Mahol

aacdec: use float_dsp in apply_independent_coupling

Could not be used in apply_dependent_coupling because of alignment issues.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=19f1eaa84fcec6293d36249929994beabe700b3e
---

 libavcodec/aacdec.c | 4 +---
 1 file changed, 1 insertion(+), 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"



More information about the ffmpeg-cvslog mailing list