[FFmpeg-soc] [soc]: r1642 - qcelp/qcelpdec.c

reynaldo subversion at mplayerhq.hu
Sat Dec 22 16:33:21 CET 2007


Author: reynaldo
Date: Sat Dec 22 16:33:21 2007
New Revision: 1642

Log:
Small FFABS nit

Modified:
   qcelp/qcelpdec.c

Modified: qcelp/qcelpdec.c
==============================================================================
--- qcelp/qcelpdec.c	(original)
+++ qcelp/qcelpdec.c	Sat Dec 22 16:33:21 2007
@@ -219,8 +219,7 @@ void qcelp_decode_params(AVCodecContext 
 
             // NOTICE: gs[0]=1;
 
-            gain_memory=q->last_codebook_gain<0?
-                     q->last_codebook_gain*-1 : q->last_codebook_gain;
+            gain_memory=FFABS(q->last_codebook_gain)
 
             gain[0]=0.5*gain_memory + 0.5*ga[0];
 



More information about the FFmpeg-soc mailing list