[FFmpeg-soc] [soc]: r4993 - amr/amrnbdec.c
cmcq
subversion at mplayerhq.hu
Sat Aug 8 23:01:31 CEST 2009
Author: cmcq
Date: Sat Aug 8 23:01:30 2009
New Revision: 4993
Log:
Distributive law optimizations
Modified:
amr/amrnbdec.c
Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c Sat Aug 8 22:56:03 2009 (r4992)
+++ amr/amrnbdec.c Sat Aug 8 23:01:30 2009 (r4993)
@@ -362,14 +362,14 @@ 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 + 5) * 10923 >> 16) + 17;
+ *lag_int = (pitch_index + 117) * 10923 >> 16;
*lag_frac = pitch_index - *lag_int * 6 + 105;
} else {
*lag_int = pitch_index - 368;
*lag_frac = 0;
}
} else if (pitch_index < 197) {
- *lag_int = ((pitch_index + 2) * 10923 >> 15) + 19;
+ *lag_int = (pitch_index + 59) * 10923 >> 15;
*lag_frac = pitch_index - *lag_int * 3 + 58;
} else {
*lag_int = pitch_index - 112;
More information about the FFmpeg-soc
mailing list