diff options
author | Måns Rullgård <mans@mansr.com> | 2009-09-27 16:51:54 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-09-27 16:51:54 +0000 |
commit | 952e87219815b0d8a698e0c098e4fb7984f8b19d (patch) | |
tree | c1cd595004f4e6f151c13e5c85cf33c01a736c04 /libavcodec/wmadec.c | |
parent | 7f5c14210b3184d6c4330bf63af9512808c37379 (diff) | |
download | ffmpeg-952e87219815b0d8a698e0c098e4fb7984f8b19d.tar.gz |
Drop unused args from vector_fmul_add_add, simpify code, and rename
The src3 and step arguments to vector_fmul_add_add() are always zero
and one, respectively. This removes these arguments from the function,
simplifies the code accordingly, and renames the function to better
match the new operation.
Originally committed as revision 20061 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r-- | libavcodec/wmadec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index ca3bf0a523..a4d5ad6d27 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -301,16 +301,16 @@ static void wma_window(WMACodecContext *s, float *out) block_len = s->block_len; bsize = s->frame_len_bits - s->block_len_bits; - s->dsp.vector_fmul_add_add(out, in, s->windows[bsize], - out, 0, block_len, 1); + s->dsp.vector_fmul_add(out, in, s->windows[bsize], + out, block_len); } else { block_len = 1 << s->prev_block_len_bits; n = (s->block_len - block_len) / 2; bsize = s->frame_len_bits - s->prev_block_len_bits; - s->dsp.vector_fmul_add_add(out+n, in+n, s->windows[bsize], - out+n, 0, block_len, 1); + s->dsp.vector_fmul_add(out+n, in+n, s->windows[bsize], + out+n, block_len); memcpy(out+n+block_len, in+n+block_len, n*sizeof(float)); } |