Author: cmcq
Date: Sat Aug  8 23:12:28 2009
New Revision: 4995

Log:
remove ?: abuse

Modified:
   amr/amrnbdec.c

Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c      Sat Aug  8 23:10:12 2009        (r4994)
+++ amr/amrnbdec.c      Sat Aug  8 23:12:28 2009        (r4995)
@@ -684,7 +684,9 @@ static float fixed_gain_smooth(AMRContex
 
     // If diff is large for ten subframes, disable smoothing for a 40-subframe
     // hangover period.
-    p->diff_count = diff > 0.65 ? p->diff_count + 1 : 0;
+    p->diff_count++;
+    if (diff <= 0.65)
+        p->diff_count = 0;
 
     if (p->diff_count > 10) {
         p->hang_count = 0;
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to