[FFmpeg-cvslog] r18734 - trunk/libavcodec/qcelpdec.c

reynaldo subversion
Mon May 4 05:25:58 CEST 2009


Author: reynaldo
Date: Mon May  4 05:25:57 2009
New Revision: 18734

Log:
Properly handle SILENCE frame. Patch by Kenan Gillet.

Modified:
   trunk/libavcodec/qcelpdec.c

Modified: trunk/libavcodec/qcelpdec.c
==============================================================================
--- trunk/libavcodec/qcelpdec.c	Sun May  3 11:32:40 2009	(r18733)
+++ trunk/libavcodec/qcelpdec.c	Mon May  4 05:25:57 2009	(r18734)
@@ -249,7 +249,7 @@ static void decode_gain_and_index(QCELPC
             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)
         {



More information about the ffmpeg-cvslog mailing list