[FFmpeg-soc] [soc]: r4995 - amr/amrnbdec.c
cmcq
subversion at mplayerhq.hu
Sat Aug 8 23:12:28 CEST 2009
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;
More information about the FFmpeg-soc
mailing list