[FFmpeg-soc] [soc]: r4812 - amr/amrnbfloatdec.c

cmcq subversion at mplayerhq.hu
Tue Jul 28 17:28:31 CEST 2009


Author: cmcq
Date: Tue Jul 28 17:28:31 2009
New Revision: 4812

Log:
Simplify (x != 0) ==> (x)

Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	Mon Jul 27 13:27:32 2009	(r4811)
+++ amr/amrnbfloatdec.c	Tue Jul 28 17:28:31 2009	(r4812)
@@ -1119,7 +1119,7 @@ static void post_process(AMRContext *p, 
 
     // Adaptive gain control
     post_filter_gain = ff_dot_productf(buf_out, buf_out, AMR_SUBFRAME_SIZE);
-    if (post_filter_gain != 0)
+    if (post_filter_gain)
         gain_scale_factor = sqrt(speech_gain / post_filter_gain);
 
     for (i = 0; i < AMR_SUBFRAME_SIZE; i++) {


More information about the FFmpeg-soc mailing list