aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-06-06 17:23:47 +0200
committerLynne <dev@lynne.ee>2024-06-08 00:22:40 +0200
commit9b41cc04300e8d00ae3a6326639e975712e21bb6 (patch)
treed46e977b0319e64dd8f36ac9bad0b4730b7a2e11 /libavcodec
parenta18d0659f403cf4b93a3c5a293a42e0ff7348e90 (diff)
downloadffmpeg-9b41cc04300e8d00ae3a6326639e975712e21bb6.tar.gz
aacdec_usac: do not round noise amplitude values
Use floating point division instead of integer division.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/aac/aacdec_usac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c
index 5dd489a43b..9173f1b354 100644
--- a/libavcodec/aac/aacdec_usac.c
+++ b/libavcodec/aac/aacdec_usac.c
@@ -930,7 +930,7 @@ static void apply_noise_fill(AACDecContext *ac, SingleChannelElement *sce,
float *coef;
IndividualChannelStream *ics = &sce->ics;
- float noise_val = pow(2, (ue->noise.level - 14)/3);
+ float noise_val = powf(2, ((float)ue->noise.level - 14.0f)/3.0f);
int noise_offset = ue->noise.offset - 16;
int band_off;