X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fopus.c;h=64de246720d8a37ee6d2a0c838433be29759fe1b;hb=bd96c54fe4819b3ca9a975e2083d67f4443c559b;hp=f74278a7e3ad8356ba75587209cd94e0901d59b6;hpb=398000abcf980d239a789da6f69811913d2fc635;p=ffmpeg diff --git a/libavcodec/opus.c b/libavcodec/opus.c index f74278a7e3a..64de246720d 100644 --- a/libavcodec/opus.c +++ b/libavcodec/opus.c @@ -613,6 +613,8 @@ void ff_celt_bitalloc(CeltFrame *f, OpusRangeCoder *rc, int encode) } /* Allocation trim */ + if (!encode) + f->alloc_trim = 5; if (opus_rc_tell_frac(rc) + (6 << 3) <= tbits_8ths) if (encode) ff_opus_rc_enc_cdf(rc, f->alloc_trim, ff_celt_model_alloc_trim);