diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-07-18 22:47:30 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-07-18 22:52:06 +0300 |
commit | 79450adfc80bb5d5d94deb1e1dd573b6cebfbe99 (patch) | |
tree | 272e4641323652a5750e2b36e03d25dc47c38b39 /libavcodec/opusenc.c | |
parent | 9b937958907daaddade139c36ce33c6eac269631 (diff) |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/opusenc.c b/libavcodec/opusenc.c index c54df8c060..8f2da4a7ba 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++) { |