[FFmpeg-soc] [soc]: r4791 - amr/amrnbfloatdec.c
cmcq
subversion at mplayerhq.hu
Thu Jul 23 17:38:29 CEST 2009
Author: cmcq
Date: Thu Jul 23 17:38:29 2009
New Revision: 4791
Log:
Disable anti-sparseness filter for low levels of fixed gain
anti_sparseness now gets the same impNr as the ref decoder (in my tests).
Modified:
amr/amrnbfloatdec.c
Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c Thu Jul 23 16:14:36 2009 (r4790)
+++ amr/amrnbfloatdec.c Thu Jul 23 17:38:29 2009 (r4791)
@@ -876,7 +876,11 @@ static void anti_sparseness(AMRContext *
ir_filter_strength++;
}
- //FIXME: disable filtering for very low level of fixed_gain
+ // Disable filtering for very low level of fixed_gain.
+ // Note this step is not specified in the technical description but is in
+ // the reference source in the function Ph_disp.
+ if (fixed_gain < 5.0)
+ ir_filter_strength = 2;
if (p->cur_frame_mode != MODE_74 && p->cur_frame_mode < MODE_102 && ir_filter_strength < 2) {
const float **filters = p->cur_frame_mode == MODE_795 ? ir_filters_lookup_MODE_795
More information about the FFmpeg-soc
mailing list