changeset 8408:c7e800518b8b libavcodec

Cosmetics by Kenan Gillet. Part 1 of 3 of his 'qcelp: silence handling' changeset.
author reynaldo
date Sat, 20 Dec 2008 02:38:34 +0000
parents 8903ad65c412
children 51c9946c70f9
files qcelpdec.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/qcelpdec.c	Fri Dec 19 22:37:56 2008 +0000
+++ b/qcelpdec.c	Sat Dec 20 02:38:34 2008 +0000
@@ -536,7 +536,12 @@
             }
         }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);