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

cmcq subversion at mplayerhq.hu
Wed Aug 5 00:53:53 CEST 2009


Author: cmcq
Date: Wed Aug  5 00:53:53 2009
New Revision: 4941

Log:
Correction to 10.2kbit/s parameter decoding (by comparison to ref source)

Modified:
   amr/amrnbdec.c

Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c	Tue Aug  4 21:38:17 2009	(r4940)
+++ amr/amrnbdec.c	Wed Aug  5 00:53:53 2009	(r4941)
@@ -546,7 +546,7 @@ static void decode_8_pulses_31bits(const
 
     // coded using 5+2 bits with the 2 LSBs being, individually, the LSB of 1 of
     // the 2 pulses and the upper 5 bits being coded in base 5
-    temp = ((fixed_index[6] >> 2) * 25) >> 5;
+    temp = ((fixed_index[6] >> 2) * 25 + 12) >> 5;
     pulse_position[3] = temp % 5;
     pulse_position[7] = temp / 5;
     if (pulse_position[7] & 1)


More information about the FFmpeg-soc mailing list