summaryrefslogtreecommitdiffstats
path: root/libavcodec/opusenc_psy.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2017-12-30 17:02:54 +0000
committerRostislav Pehlivanov <atomnuker@gmail.com>2017-12-30 17:05:23 +0000
commit51027d0b8b2835d4c70c9cb7b2ab5e28d5e3f22f (patch)
tree602207df544f63dac1fb907c6ddc59bf4ed06b79 /libavcodec/opusenc_psy.c
parent0c78b6a416c661afed745d44495b5194f714fb96 (diff)
downloadffmpeg-streaming-51027d0b8b2835d4c70c9cb7b2ab5e28d5e3f22f.zip
ffmpeg-streaming-51027d0b8b2835d4c70c9cb7b2ab5e28d5e3f22f.tar.gz
opus: merge encoder and decoder bitallocation functions into one
There's no difference apart from which entropy coding functions get called. 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 5393c9d7..50890c6 100644
--- a/libavcodec/opusenc_psy.c
+++ b/libavcodec/opusenc_psy.c
@@ -366,7 +366,7 @@ static int bands_dist(OpusPsyContext *s, CeltFrame *f, float *total_dist)
OpusRangeCoder dump;
ff_opus_rc_enc_init(&dump);
- ff_celt_enc_bitalloc(f, &dump);
+ ff_celt_bitalloc(f, &dump, 1);
for (i = 0; i < CELT_MAX_BANDS; i++) {
float bits = 0.0f;
OpenPOWER on IntegriCloud