From 10f160768b824f00933f33bc69f1fae89a25dfc8 Mon Sep 17 00:00:00 2001 From: Peter Meerwald Date: Sun, 15 Feb 2015 12:21:22 +0100 Subject: g722: Reduce number of pointers passed to g722_apply_qmf() function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Meerwald Signed-off-by: Martin Storsjö --- libavcodec/g722dsp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavcodec/g722dsp.c') diff --git a/libavcodec/g722dsp.c b/libavcodec/g722dsp.c index 1fefc6b3c4..5d3aedb737 100644 --- a/libavcodec/g722dsp.c +++ b/libavcodec/g722dsp.c @@ -29,15 +29,15 @@ static const int16_t qmf_coeffs[12] = { 3, -11, 12, 32, -210, 951, 3876, -805, 362, -156, 53, -11, }; -static void g722_apply_qmf(const int16_t *prev_samples, int *xout1, int *xout2) +static void g722_apply_qmf(const int16_t *prev_samples, int xout[2]) { int i; - *xout1 = 0; - *xout2 = 0; + xout[0] = 0; + xout[1] = 0; for (i = 0; i < 12; i++) { - MAC16(*xout2, prev_samples[2*i ], qmf_coeffs[i ]); - MAC16(*xout1, prev_samples[2*i+1], qmf_coeffs[11-i]); + MAC16(xout[1], prev_samples[2*i ], qmf_coeffs[i ]); + MAC16(xout[0], prev_samples[2*i+1], qmf_coeffs[11-i]); } } -- cgit v1.2.3