[FFmpeg-soc] [soc]: r4778 - amr/amrnbfloatdec.c
cmcq
subversion at mplayerhq.hu
Wed Jul 22 21:19:45 CEST 2009
Author: cmcq
Date: Wed Jul 22 21:19:44 2009
New Revision: 4778
Log:
The post-filter AGC is updated every sample
Modified:
amr/amrnbfloatdec.c
Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c Wed Jul 22 18:41:33 2009 (r4777)
+++ amr/amrnbfloatdec.c Wed Jul 22 21:19:44 2009 (r4778)
@@ -1056,11 +1056,11 @@ static void post_process(AMRContext *p,
if (post_filter_gain != 0)
gain_scale_factor = sqrt(speech_gain / post_filter_gain);
- p->post_filter_agc = AMR_AGC_ALPHA * p->post_filter_agc +
- (1.0 - AMR_AGC_ALPHA) * gain_scale_factor;
-
- for (i = 0; i < AMR_SUBFRAME_SIZE; i++)
+ for (i = 0; i < AMR_SUBFRAME_SIZE; i++) {
+ p->post_filter_agc = AMR_AGC_ALPHA * p->post_filter_agc +
+ (1.0 - AMR_AGC_ALPHA) * gain_scale_factor;
buf_out[i] *= p->post_filter_agc;
+ }
}
/**
More information about the FFmpeg-soc
mailing list