aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dca.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-09-28 14:34:04 +0100
committerMans Rullgard <mans@mansr.com>2011-09-28 15:56:09 +0100
commita92a1b93b4888821b2c0f01ab628d8ebaf3f6d61 (patch)
tree9b2c72e3f0ac2761eccff4f6106bbfe29f066c73 /libavcodec/dca.c
parentfcca826a63c79168f82a48c2620312630a83080a (diff)
downloadffmpeg-a92a1b93b4888821b2c0f01ab628d8ebaf3f6d61.tar.gz
dca: use vector_fmac_scalar from dsputil
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/dca.c')
-rw-r--r--libavcodec/dca.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c
index 58f3420586..db794a72fd 100644
--- a/libavcodec/dca.c
+++ b/libavcodec/dca.c
@@ -1829,11 +1829,8 @@ static int dca_decode_frame(AVCodecContext * avctx,
float* back_chan = s->samples + s->channel_order_tab[s->xch_base_channel] * 256;
float* lt_chan = s->samples + s->channel_order_tab[s->xch_base_channel - 2] * 256;
float* rt_chan = s->samples + s->channel_order_tab[s->xch_base_channel - 1] * 256;
- int j;
- for(j = 0; j < 256; ++j) {
- lt_chan[j] -= back_chan[j] * M_SQRT1_2;
- rt_chan[j] -= back_chan[j] * M_SQRT1_2;
- }
+ s->dsp.vector_fmac_scalar(lt_chan, back_chan, -M_SQRT1_2, 256);
+ s->dsp.vector_fmac_scalar(rt_chan, back_chan, -M_SQRT1_2, 256);
}
if (avctx->sample_fmt == AV_SAMPLE_FMT_FLT) {