From: Kenan Gillet Date: Mon, 4 May 2009 03:25:57 +0000 (+0000) Subject: Properly handle SILENCE frame. Patch by Kenan Gillet. X-Git-Tag: v0.6~4517 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b05059d2d1d66600c0bfa97271c3603d9907f4f;p=platform%2Fupstream%2Flibav.git Properly handle SILENCE frame. Patch by Kenan Gillet. Originally committed as revision 18734 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/qcelpdec.c b/libavcodec/qcelpdec.c index eff57cf..68b9d2c 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) {