changeset 9594:a0517e3590fd libavcodec

Properly handle SILENCE frame. Patch by Kenan Gillet.
author reynaldo
date Mon, 04 May 2009 03:25:57 +0000
parents b8140a218b1d
children f9a7147cc9e6
files qcelpdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)
         {