summaryrefslogtreecommitdiffstats
path: root/libavcodec/opusenc.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2017-07-18 20:47:30 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2017-07-18 20:52:06 +0100
commit79450adfc80bb5d5d94deb1e1dd573b6cebfbe99 (patch)
tree272e4641323652a5750e2b36e03d25dc47c38b39 /libavcodec/opusenc.c
parent9b937958907daaddade139c36ce33c6eac269631 (diff)
downloadffmpeg-streaming-79450adfc80bb5d5d94deb1e1dd573b6cebfbe99.zip
ffmpeg-streaming-79450adfc80bb5d5d94deb1e1dd573b6cebfbe99.tar.gz
opus: simplify coarse energy beta coefficients
Just put the subtraction in the table. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/opusenc.c')
-rw-r--r--libavcodec/opusenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/opusenc.c b/libavcodec/opusenc.c
index c54df8c..8f2da4a 100644
--- a/libavcodec/opusenc.c
+++ b/libavcodec/opusenc.c
@@ -644,10 +644,10 @@ static void exp_quant_coarse(OpusRangeCoder *rc, CeltFrame *f,
if (intra) {
alpha = 0.0f;
- beta = 1.0f - 4915.0f/32768.0f;
+ beta = 1.0f - (4915.0f/32768.0f);
} else {
alpha = ff_celt_alpha_coef[f->size];
- beta = 1.0f - ff_celt_beta_coef[f->size];
+ beta = ff_celt_beta_coef[f->size];
}
for (i = f->start_band; i < f->end_band; i++) {
OpenPOWER on IntegriCloud