[FFmpeg-soc] [soc]: r4093 - amr/amrnbfloatdec.c
kmalaussene
subversion at mplayerhq.hu
Thu Feb 19 05:15:03 CET 2009
Author: kmalaussene
Date: Thu Feb 19 05:15:03 2009
New Revision: 4093
Log:
Move update of ir_filter_strength state into do_phase_dispersion,
so that all the code handling phase dispersion is in one place.
Modified:
amr/amrnbfloatdec.c
Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c Thu Feb 19 05:03:09 2009 (r4092)
+++ amr/amrnbfloatdec.c Thu Feb 19 05:15:03 2009 (r4093)
@@ -814,6 +814,9 @@ void do_phase_dispersion(AMRContext *p)
// circularly convolve the fixed vector with the impulse response
convolve_circ(p->fixed_vector, p->ir_filter);
}
+
+ // update ir filter strength history
+ p->prev_ir_filter_strength = ir_filter_strength;
}
/// @defgroup amr_synthesis synthesis functions
@@ -912,9 +915,6 @@ static void update_state(AMRContext *p)
memmove(&p->pitch_gain[0], &p->pitch_gain[1], 4*sizeof(float));
memmove(&p->fixed_gain[0], &p->fixed_gain[1], 4*sizeof(float));
- // update ir filter strength history
- p->ir_filter_strength[0] = p->ir_filter_strength[1];
-
// update speech sample history
memmove(&p->samples_in[0], &p->samples_in[AMR_SUBFRAME_SIZE],
LP_FILTER_ORDER*sizeof(float));
More information about the FFmpeg-soc
mailing list