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

reynaldo subversion
Sat Dec 20 03:38:35 CET 2008


Author: reynaldo
Date: Sat Dec 20 03:38:34 2008
New Revision: 16244

Log:
Cosmetics by Kenan Gillet. Part 1 of 3 of his 'qcelp: silence handling'
changeset.


Modified:
   trunk/libavcodec/qcelpdec.c

Modified: trunk/libavcodec/qcelpdec.c
==============================================================================
--- trunk/libavcodec/qcelpdec.c	(original)
+++ trunk/libavcodec/qcelpdec.c	Sat Dec 20 03:38:34 2008
@@ -536,7 +536,12 @@ static void apply_pitch_filters(QCELPCon
             }
         }else
         {
-            float max_pitch_gain = q->erasure_count < 3 ? 0.9 - 0.3 * (q->erasure_count - 1) : 0.0;
+            float max_pitch_gain;
+
+            if (q->erasure_count < 3)
+                max_pitch_gain = 0.9 - 0.3 * (q->erasure_count - 1);
+             else
+                max_pitch_gain = 0.0;
             for(i=0; i<4; i++)
                 q->pitch_gain[i] = FFMIN(q->pitch_gain[i], max_pitch_gain);
 




More information about the ffmpeg-cvslog mailing list