1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

aacdec_usac: do not round noise amplitude values

Use floating point division instead of integer division.
This commit is contained in:
Lynne 2024-06-06 17:23:47 +02:00
parent a18d0659f4
commit 9b41cc0430
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -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;