Mercurial > libavcodec.hg
changeset 11482:7211254a444c libavcodec
aacsbr: DSPUtilize analysis input scaling.
author | alexc |
---|---|
date | Sat, 13 Mar 2010 21:12:45 +0000 |
parents | 96dde15b2e0d |
children | b16c5c5705df |
files | aacsbr.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/aacsbr.c Sat Mar 13 21:12:10 2010 +0000 +++ b/aacsbr.c Sat Mar 13 21:12:45 2010 +0000 @@ -1132,8 +1132,7 @@ memcpy(W[0], W[1], sizeof(W[0])); memcpy(x , x+1024, (320-32)*sizeof(x[0])); if (scale != 1.0f) - for (i = 0; i < 1024; i++) - x[288 + i] = in[i] * scale; + dsp->vector_fmul_scalar(x+288, in, scale, 1024); else memcpy(x+288, in, 1024*sizeof(*x)); for (i = 0; i < 32; i++) { // numTimeSlots*RATE = 16*2 as 960 sample frames