1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

aacdec: use float_dsp in apply_independent_coupling

Could not be used in apply_dependent_coupling because of alignment issues.
This commit is contained in:
Lynne
2019-04-12 22:50:59 +01:00
committed by Paul B Mahol
parent 6223d076e3
commit 19f1eaa84f

View File

@@ -247,14 +247,12 @@ static void apply_independent_coupling(AACContext *ac,
SingleChannelElement *target, SingleChannelElement *target,
ChannelElement *cce, int index) ChannelElement *cce, int index)
{ {
int i;
const float gain = cce->coup.gain[index][0]; const float gain = cce->coup.gain[index][0];
const float *src = cce->ch[0].ret; const float *src = cce->ch[0].ret;
float *dest = target->ret; float *dest = target->ret;
const int len = 1024 << (ac->oc[1].m4ac.sbr == 1); const int len = 1024 << (ac->oc[1].m4ac.sbr == 1);
for (i = 0; i < len; i++) ac->fdsp->vector_fmac_scalar(dest, src, gain, len);
dest[i] += gain * src[i];
} }
#include "aacdec_template.c" #include "aacdec_template.c"