diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-16 01:54:14 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-16 01:54:19 +0100 |
commit | 9f1792982eb69782fa6d1ff0ab5d11d21bd451df (patch) | |
tree | 065764c63ed21400552f726beeaa2cde52ff9a17 /libavcodec/g722dsp.c | |
parent | 47df21e1727c83648a645b0dde34e99f1b7bdc93 (diff) | |
parent | 10f160768b824f00933f33bc69f1fae89a25dfc8 (diff) | |
download | ffmpeg-streaming-9f1792982eb69782fa6d1ff0ab5d11d21bd451df.zip ffmpeg-streaming-9f1792982eb69782fa6d1ff0ab5d11d21bd451df.tar.gz |
Merge commit '10f160768b824f00933f33bc69f1fae89a25dfc8'
* commit '10f160768b824f00933f33bc69f1fae89a25dfc8':
g722: Reduce number of pointers passed to g722_apply_qmf() function
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 b3cc728..8d6c721 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]); } } |