Author: kmalaussene
Date: Sun Feb 22 20:54:41 2009
New Revision: 4122
Log:
Fix decoding of pitch lag for subframe 2 & 4 in MODE_795.
Modified:
amr/amrnbfloatdec.c
Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c Sun Feb 22 17:42:51 2009 (r4121)
+++ amr/amrnbfloatdec.c Sun Feb 22 20:54:41 2009 (r4122)
@@ -426,7 +426,11 @@ static void decode_pitch_lag(int *lag_in
// 10923>>15 is approximately 1/3
*lag_int = ( ((pitch_index + 2)*10923)>>15 ) - 1;
*lag_frac = pitch_index - *lag_int * 3 - 2;
+ if(mode == MODE_795) {
+ *lag_int += av_clip(prev_lag_int - 10, PITCH_LAG_MIN,
PITCH_LAG_MAX - 19);
+ }else {
*lag_int += av_clip(prev_lag_int - 5, PITCH_LAG_MIN, PITCH_LAG_MAX
- 9);
+ }
}
}
}
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc