From ce87e630fa009d0bf78cd7a7599e6efc221e6543 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Mon, 4 Dec 2017 08:55:45 +0000 Subject: 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 --- libavcodec/opusenc_psy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/opusenc_psy.c') 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; -- cgit v1.2.3