diff mbox

[FFmpeg-devel] aacdec: use float_dsp in apply_independent_coupling

Message ID LcIY2zC--3-1@lynne.ee
State New
Headers show

Commit Message

Lynne April 12, 2019, 9:55 p.m. UTC
Could not be used in apply_dependent_coupling because of alignment issues.

Comments

Lynne April 18, 2019, 12:02 p.m. UTC | #1
Apr 12, 2019, 10:55 PM by dev@lynne.ee:

> Could not be used in apply_dependent_coupling because of alignment issues.
>

Ping?
Paul B Mahol April 18, 2019, 12:21 p.m. UTC | #2
On 4/12/19, Lynne <dev@lynne.ee> wrote:
> Could not be used in apply_dependent_coupling because of alignment issues.
>
>

Probably OK
diff mbox

Patch

From 77fb3cf47601c1d5848740bf4a61f18bb62ec1e1 Mon Sep 17 00:00:00 2001
From: Lynne <dev@lynne.ee>
Date: Fri, 12 Apr 2019 22:50:59 +0100
Subject: [PATCH] aacdec: use float_dsp in apply_independent_coupling

Could not be used in apply_dependent_coupling because of alignment issues.
---
 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"
-- 
2.20.1