summaryrefslogtreecommitdiffstats
path: root/libavcodec/g722dsp.c
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2015-02-15 12:21:22 +0100
committerMartin Storsjö <martin@martin.st>2015-02-15 22:47:14 +0200
commit10f160768b824f00933f33bc69f1fae89a25dfc8 (patch)
treebbc297d9795d8d752fad24a72445554f27a6c484 /libavcodec/g722dsp.c
parent67690683130faf37dd9d969ced15eba2a1940ade (diff)
downloadffmpeg-streaming-10f160768b824f00933f33bc69f1fae89a25dfc8.zip
ffmpeg-streaming-10f160768b824f00933f33bc69f1fae89a25dfc8.tar.gz
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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/g722dsp.c b/libavcodec/g722dsp.c
index 1fefc6b..5d3aedb 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]);
}
}
OpenPOWER on IntegriCloud