aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/opusenc_psy.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2017-12-04 08:55:45 +0000
committerRostislav Pehlivanov <atomnuker@gmail.com>2017-12-04 10:51:19 +0000
commitce87e630fa009d0bf78cd7a7599e6efc221e6543 (patch)
treea0dab6973b6b5c9b0ff994b28fc51afcaac0152c /libavcodec/opusenc_psy.c
parent86fda8be3f3892c48474a319e0ef7509dc137e3e (diff)
downloadffmpeg-ce87e630fa009d0bf78cd7a7599e6efc221e6543.tar.gz
opus_celt: deduplicate band quantization/dequantization function
No point in having the same code twice to do exactly the same thing. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/opusenc_psy.c')
-rw-r--r--libavcodec/opusenc_psy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/opusenc_psy.c b/libavcodec/opusenc_psy.c
index 1b108ecb87..dc549dc9a9 100644
--- a/libavcodec/opusenc_psy.c
+++ b/libavcodec/opusenc_psy.c
@@ -316,7 +316,7 @@ static int bands_dist(OpusPsyContext *s, CeltFrame *f, float *total_dist)
OpusRangeCoder dump;
ff_opus_rc_enc_init(&dump);
- ff_celt_enc_bitalloc(&dump, f);
+ ff_celt_enc_bitalloc(f, &dump);
for (i = 0; i < CELT_MAX_BANDS; i++) {
float bits = 0.0f;