mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
lavc/nellymoserdec: replace pow by exp2
exp2 suffices here. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
93afb338a4
commit
a0ddebfedf
@ -75,7 +75,7 @@ static void nelly_decode_block(NellyMoserDecodeContext *s,
|
|||||||
for (i=0 ; i<NELLY_BANDS ; i++) {
|
for (i=0 ; i<NELLY_BANDS ; i++) {
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
val += ff_nelly_delta_table[get_bits(&s->gb, 5)];
|
val += ff_nelly_delta_table[get_bits(&s->gb, 5)];
|
||||||
pval = -pow(2, val/2048) * s->scale_bias;
|
pval = -exp2(val/2048) * s->scale_bias;
|
||||||
for (j = 0; j < ff_nelly_band_sizes_table[i]; j++) {
|
for (j = 0; j < ff_nelly_band_sizes_table[i]; j++) {
|
||||||
*bptr++ = val;
|
*bptr++ = val;
|
||||||
*pptr++ = pval;
|
*pptr++ = pval;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user