mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avcodec/nellymoserenc: use log2 instead of log()/M_LN2
This is likely more precise and conveys the intent better. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
4870d8518a
commit
68ba63ebd5
1 changed files with 1 additions and 1 deletions
|
|
@ -318,7 +318,7 @@ static void encode_block(NellyMoserEncodeContext *s, unsigned char *output, int
|
|||
+ s->mdct_out[i + NELLY_BUF_LEN] * s->mdct_out[i + NELLY_BUF_LEN];
|
||||
}
|
||||
cand[band] =
|
||||
log(FFMAX(1.0, coeff_sum / (ff_nelly_band_sizes_table[band] << 7))) * 1024.0 / M_LN2;
|
||||
log2(FFMAX(1.0, coeff_sum / (ff_nelly_band_sizes_table[band] << 7))) * 1024.0;
|
||||
}
|
||||
|
||||
if (s->avctx->trellis) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue