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

cmcq subversion at mplayerhq.hu
Sat Aug 8 23:20:05 CEST 2009


Author: cmcq
Date: Sat Aug  8 23:20:05 2009
New Revision: 4997

Log:
Correction to arithmetic in r4993

Modified:
   amr/amrnbdec.c

Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c	Sat Aug  8 23:16:00 2009	(r4996)
+++ amr/amrnbdec.c	Sat Aug  8 23:20:05 2009	(r4997)
@@ -362,7 +362,7 @@ static void decode_pitch_lag(int *lag_in
         (subframe == 2 && mode != MODE_475 && mode != MODE_515)) {
         if (mode == MODE_122) {
             if (pitch_index < 463) {
-                *lag_int  = (pitch_index + 117) * 10923 >> 16;
+                *lag_int  = (pitch_index + 107) * 10923 >> 16;
                 *lag_frac = pitch_index - *lag_int * 6 + 105;
             } else {
                 *lag_int  = pitch_index - 368;


More information about the FFmpeg-soc mailing list