Properly handle SILENCE frame. Patch by Kenan Gillet.

Originally committed as revision 18734 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Kenan Gillet 16 years ago committed by Reynaldo H. Verdejo Pinochet
parent 6b71ed1678
commit 5b05059d2d
  1. 2
      libavcodec/qcelpdec.c

@ -249,7 +249,7 @@ static void decode_gain_and_index(QCELPContext *q,
gain[2] = gain[1];
gain[1] = 0.6*gain[0] + 0.4*gain[1];
}
}else
}else if (q->bitrate != SILENCE)
{
if(q->bitrate == RATE_OCTAVE)
{

Loading…
Cancel
Save