diff qcelpdec.c @ 9594:a0517e3590fd libavcodec

Properly handle SILENCE frame. Patch by Kenan Gillet.
author reynaldo
date Mon, 04 May 2009 03:25:57 +0000
parents 0dce4fe6e6f3
children 3c98f3e1b719
line wrap: on
line diff
--- a/qcelpdec.c	Sun May 03 09:32:40 2009 +0000
+++ b/qcelpdec.c	Mon May 04 03:25:57 2009 +0000
@@ -249,7 +249,7 @@
             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)
         {