From 5b05059d2d1d66600c0bfa97271c3603d9907f4f Mon Sep 17 00:00:00 2001 From: Kenan Gillet Date: Mon, 4 May 2009 03:25:57 +0000 Subject: [PATCH] Properly handle SILENCE frame. Patch by Kenan Gillet. Originally committed as revision 18734 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/qcelpdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qcelpdec.c b/libavcodec/qcelpdec.c index eff57cfecf..68b9d2c04a 100644 --- a/libavcodec/qcelpdec.c +++ b/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) {