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

kmalaussene subversion at mplayerhq.hu
Wed Feb 18 00:44:16 CET 2009


Author: kmalaussene
Date: Wed Feb 18 00:44:16 2009
New Revision: 4081

Log:
Fix previous commit r4080: code was updating a const variable.

Modified:
   amr/amrnbfloatdec.c

Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c	Wed Feb 18 00:39:26 2009	(r4080)
+++ amr/amrnbfloatdec.c	Wed Feb 18 00:44:16 2009	(r4081)
@@ -589,9 +589,8 @@ static void decode_10_pulses_35bits(cons
         const int pos1   = gray_decode[fixed_index[i  ] & 7]*TRACKS + i;
         const int pos2   = gray_decode[fixed_index[i+5] & 7]*TRACKS + i;
         const float sign = (fixed_index[i] & 8) ? -1.0 : 1.0;
-        fixed_vector[pos1] = sign;
-        if(pos2 < pos1) sign = -sign;
-        fixed_vector[pos2] += sign;
+        fixed_vector[pos1]  = sign;
+        fixed_vector[pos2] += pos2 < pos1 ? -sign : sign;
     }
 }
 



More information about the FFmpeg-soc mailing list