[FFmpeg-soc] [soc]: r1592 - amr/amrnbfloatdec.c
superdump
subversion at mplayerhq.hu
Sat Dec 15 22:27:07 CET 2007
Author: superdump
Date: Sat Dec 15 22:27:06 2007
New Revision: 1592
Log:
Simplify
Modified:
amr/amrnbfloatdec.c
Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c (original)
+++ amr/amrnbfloatdec.c Sat Dec 15 22:27:06 2007
@@ -997,11 +997,10 @@ static int synthesis(AMRContext *p, floa
}
for(i=0; i<AMR_SUBFRAME_SIZE; i++) {
- float sample_temp = 0.0;
+ samples[i] = excitation[i];
for(j=0; j<LP_FILTER_ORDER; j++) {
- sample_temp -= lpc[j]*samples[i-j-1];
+ samples[i] -= lpc[j]*samples[i-j-1];
}
- samples[i] = excitation[i] + sample_temp;
// Detect overflow
if(fabsf(samples[i])>1.0) {
overflow_temp = 1;
More information about the FFmpeg-soc
mailing list