[FFmpeg-soc] [soc]: r2552 - mlp/mlpdec.c

ramiro subversion at mplayerhq.hu
Sun Jun 22 20:02:57 CEST 2008


Author: ramiro
Date: Sun Jun 22 20:02:56 2008
New Revision: 2552

Log:
Copy IIR precision to FIR if only IIR is used, since the filtering code
always uses the FIR precision.

Modified:
   mlp/mlpdec.c

Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c	(original)
+++ mlp/mlpdec.c	Sun Jun 22 20:02:56 2008
@@ -685,6 +685,11 @@ static int read_decoding_params(MLPDecod
                        "FIR and IIR filters must use same precision\n");
                 return -1;
             }
+            /* Both filters must have the same precision, so the filtering
+             * code always use the FIR precision. If only IIR is used, we copy
+             * its precision to FIR. */
+            if (!m->filter_order[ch][FIR] && m->filter_order[ch][IIR])
+                m->filter_coeff_q[ch][FIR] = m->filter_coeff_q[ch][IIR];
 
             if (m->param_presence_flags[substr] & PARAM_HUFFOFFSET)
                 if (get_bits1(gbp))



More information about the FFmpeg-soc mailing list