diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-07-18 20:47:30 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-07-18 20:52:06 +0100 |
commit | 79450adfc80bb5d5d94deb1e1dd573b6cebfbe99 (patch) | |
tree | 272e4641323652a5750e2b36e03d25dc47c38b39 /libavcodec/opustab.c | |
parent | 9b937958907daaddade139c36ce33c6eac269631 (diff) | |
download | ffmpeg-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/opustab.c')
-rw-r--r-- | libavcodec/opustab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/opustab.c b/libavcodec/opustab.c index b31705297e..fb340e07e8 100644 --- a/libavcodec/opustab.c +++ b/libavcodec/opustab.c @@ -796,8 +796,8 @@ const float ff_celt_alpha_coef[] = { 29440.0f/32768.0f, 26112.0f/32768.0f, 21248.0f/32768.0f, 16384.0f/32768.0f }; -const float ff_celt_beta_coef[] = { /* TODO: precompute 1 minus this if the code ends up neater */ - 30147.0f/32768.0f, 22282.0f/32768.0f, 12124.0f/32768.0f, 6554.0f/32768.0f +const float ff_celt_beta_coef[] = { + 1.0f - (30147.0f/32768.0f), 1.0f - (22282.0f/32768.0f), 1.0f - (12124.0f/32768.0f), 1.0f - (6554.0f/32768.0f), }; const uint8_t ff_celt_coarse_energy_dist[4][2][42] = { |