Commit acd0fa6f authored by reynaldo's avatar reynaldo

Cosmetics by Kenan Gillet. Part 1 of 3 of his 'qcelp: silence handling'

changeset.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16244 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 64bd6d7d
...@@ -536,7 +536,12 @@ static void apply_pitch_filters(QCELPContext *q, float *cdn_vector) ...@@ -536,7 +536,12 @@ static void apply_pitch_filters(QCELPContext *q, float *cdn_vector)
} }
}else }else
{ {
float max_pitch_gain = q->erasure_count < 3 ? 0.9 - 0.3 * (q->erasure_count - 1) : 0.0; float max_pitch_gain;
if (q->erasure_count < 3)
max_pitch_gain = 0.9 - 0.3 * (q->erasure_count - 1);
else
max_pitch_gain = 0.0;
for(i=0; i<4; i++) for(i=0; i<4; i++)
q->pitch_gain[i] = FFMIN(q->pitch_gain[i], max_pitch_gain); q->pitch_gain[i] = FFMIN(q->pitch_gain[i], max_pitch_gain);
......
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