]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Properly handle SILENCE frame. Patch by Kenan Gillet.
authorreynaldo <reynaldo@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 4 May 2009 03:25:57 +0000 (03:25 +0000)
committerreynaldo <reynaldo@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 4 May 2009 03:25:57 +0000 (03:25 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18734 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/qcelpdec.c

index eff57cfecfc0dfa278b8f31282976f8672797944..68b9d2c04a018a6587cb1074c8c9c1ba51c16cbf 100644 (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)
         {