diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2015-02-15 14:21:22 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-15 23:47:14 +0300 |
commit | 10f160768b824f00933f33bc69f1fae89a25dfc8 (patch) | |
tree | bbc297d9795d8d752fad24a72445554f27a6c484 /libavcodec/g722dsp.c | |
parent | 67690683130faf37dd9d969ced15eba2a1940ade (diff) |
g722: Reduce number of pointers passed to g722_apply_qmf() function
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/g722dsp.c')
-rw-r--r-- | libavcodec/g722dsp.c | 10 |
1 files changed, 5 insertions, 5 deletions
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]); } } |