[FFmpeg-soc] [soc]: r4949 - amr/amrnbdec.c

cmcq subversion at mplayerhq.hu
Wed Aug 5 15:29:37 CEST 2009


Author: cmcq
Date: Wed Aug  5 15:29:37 2009
New Revision: 4949

Log:
Use sqrtf for floats

Modified:
   amr/amrnbdec.c

Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c	Wed Aug  5 15:27:34 2009	(r4948)
+++ amr/amrnbdec.c	Wed Aug  5 15:29:37 2009	(r4949)
@@ -772,7 +772,7 @@ static void set_fixed_gain(AMRContext *p
                                            4) + // predicted fixed energy
                            energy_mean[mode])) /
         // 10^(0.05 * -10log(average x^2)) = 1/sqrt((average x^2))
-        sqrt(ff_energyf(fixed_vector, AMR_SUBFRAME_SIZE) / AMR_SUBFRAME_SIZE);
+        sqrtf(ff_energyf(fixed_vector, AMR_SUBFRAME_SIZE) / AMR_SUBFRAME_SIZE);
 
     // update quantified prediction error energy history
     memmove(&p->prediction_error[0], &p->prediction_error[1],


More information about the FFmpeg-soc mailing list