Properly handle SILENCE frame. Patch by Kenan Gillet.

Originally committed as revision 18734 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Kenan Gillet 2009-05-04 03:25:57 +00:00 committed by Reynaldo H. Verdejo Pinochet
parent 6b71ed1678
commit 5b05059d2d

View File

@ -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)
{