Commit 413b32f8 authored by Michael Niedermayer's avatar Michael Niedermayer

aacpsy: calc_reduction_3gpp() handle active_lines = 0

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 062091f8
......@@ -526,6 +526,9 @@ static float calc_reduction_3gpp(float a, float desired_pe, float pe,
{
float thr_avg, reduction;
if(active_lines == 0.0)
return 0;
thr_avg = exp2f((a - pe) / (4.0f * active_lines));
reduction = exp2f((a - desired_pe) / (4.0f * active_lines)) - thr_avg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment