mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 05:11:09 +00:00
aacpsy: calc_reduction_3gpp() handle active_lines = 0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
062091f87f
commit
413b32f808
@ -526,6 +526,9 @@ static float calc_reduction_3gpp(float a, float desired_pe, float pe,
|
|||||||
{
|
{
|
||||||
float thr_avg, reduction;
|
float thr_avg, reduction;
|
||||||
|
|
||||||
|
if(active_lines == 0.0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
thr_avg = exp2f((a - pe) / (4.0f * active_lines));
|
thr_avg = exp2f((a - pe) / (4.0f * active_lines));
|
||||||
reduction = exp2f((a - desired_pe) / (4.0f * active_lines)) - thr_avg;
|
reduction = exp2f((a - desired_pe) / (4.0f * active_lines)) - thr_avg;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user