[FFmpeg-devel] [PATCH 05/12] WMA: use vector_fmul_step_scalar

Mans Rullgard mans
Sun Sep 27 12:49:21 CEST 2009


---
 libavcodec/wmadec.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index a4d5ad6..9367e97 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -601,9 +601,9 @@ static int wma_decode_block(WMACodecContext *s)
                 for(i = 0;i < s->coefs_start; i++)
                     *coefs++ = 0.0;
                 n = nb_coefs[ch];
-                for(i = 0;i < n; i++) {
-                    *coefs++ = coefs1[i] * exponents[i<<bsize>>esize] * mult;
-                }
+                s->dsp.vector_fmul_step_scalar(coefs, coefs1, exponents,
+                                               mult, 1<<bsize>>esize, n);
+                coefs += n;
                 n = s->block_len - s->coefs_end[bsize];
                 for(i = 0;i < n; i++)
                     *coefs++ = 0.0;
-- 
1.6.4.4




More information about the ffmpeg-devel mailing list