Browse Source

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
tags/v0.5
Reynaldo H. Verdejo Pinochet 17 years ago
parent
commit
a3636fa033
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libavcodec/qcelpdec.c

+ 4
- 4
libavcodec/qcelpdec.c View File

@@ -544,10 +544,10 @@ static void apply_pitch_filters(QCELPContext *q, float *cdn_vector)

if (q->bitrate == I_F_Q)
{
if (q->erasure_count < 3)
max_pitch_gain = 0.9 - 0.3 * (q->erasure_count - 1);
else
max_pitch_gain = 0.0;
if (q->erasure_count < 3)
max_pitch_gain = 0.9 - 0.3 * (q->erasure_count - 1);
else
max_pitch_gain = 0.0;
}else
{
assert(q->bitrate == SILENCE);


Loading…
Cancel
Save