[FFmpeg-soc] [soc]: r1527 - amr/amrnbfloatdec.c
superdump
subversion at mplayerhq.hu
Tue Dec 4 16:45:07 CET 2007
Author: superdump
Date: Tue Dec 4 16:45:07 2007
New Revision: 1527
Log:
Correct index into sample buffer.
Modified:
amr/amrnbfloatdec.c
Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c (original)
+++ amr/amrnbfloatdec.c Tue Dec 4 16:45:07 2007
@@ -968,7 +968,7 @@ static void synthesis(AMRContext *p, flo
for(i=0; i<AMR_SUBFRAME_SIZE; i++) {
float sample_temp = 0.0;
for(j=0; j<LP_FILTER_ORDER; j++) {
- sample_temp -= lpc[j]*samples[i-j];
+ sample_temp -= lpc[j]*samples[i-j-1];
}
samples[i] = excitation[i] + sample_temp;
}
More information about the FFmpeg-soc
mailing list