COSMETICS Part 3 and final of Kenan Gillet's QCELP silence handling patch.

Originally committed as revision 16338 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4f54fb54
...@@ -544,10 +544,10 @@ static void apply_pitch_filters(QCELPContext *q, float *cdn_vector) ...@@ -544,10 +544,10 @@ static void apply_pitch_filters(QCELPContext *q, float *cdn_vector)
if (q->bitrate == I_F_Q) if (q->bitrate == I_F_Q)
{ {
if (q->erasure_count < 3) if (q->erasure_count < 3)
max_pitch_gain = 0.9 - 0.3 * (q->erasure_count - 1); max_pitch_gain = 0.9 - 0.3 * (q->erasure_count - 1);
else else
max_pitch_gain = 0.0; max_pitch_gain = 0.0;
}else }else
{ {
assert(q->bitrate == SILENCE); assert(q->bitrate == SILENCE);
......
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