diff options
Diffstat (limited to 'lib/rbcodec/codecs/libopus/celt/entenc.c')
-rw-r--r-- | lib/rbcodec/codecs/libopus/celt/entenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/libopus/celt/entenc.c b/lib/rbcodec/codecs/libopus/celt/entenc.c index a7e34ecef9..271e4d30c5 100644 --- a/lib/rbcodec/codecs/libopus/celt/entenc.c +++ b/lib/rbcodec/codecs/libopus/celt/entenc.c | |||
@@ -127,7 +127,7 @@ void ec_enc_init(ec_enc *_this,unsigned char *_buf,opus_uint32 _size){ | |||
127 | 127 | ||
128 | void ec_encode(ec_enc *_this,unsigned _fl,unsigned _fh,unsigned _ft){ | 128 | void ec_encode(ec_enc *_this,unsigned _fl,unsigned _fh,unsigned _ft){ |
129 | opus_uint32 r; | 129 | opus_uint32 r; |
130 | r=_this->rng/_ft; | 130 | r=celt_udiv(_this->rng,_ft); |
131 | if(_fl>0){ | 131 | if(_fl>0){ |
132 | _this->val+=_this->rng-IMUL32(r,(_ft-_fl)); | 132 | _this->val+=_this->rng-IMUL32(r,(_ft-_fl)); |
133 | _this->rng=IMUL32(r,(_fh-_fl)); | 133 | _this->rng=IMUL32(r,(_fh-_fl)); |