# HG changeset patch # User ramiro # Date 1242401443 0 # Node ID b8b9ff6fa077d382cb4b4d8d22c71fdd4484d611 # Parent 3a8dfce3dc1791bce39559e4cc35bc07fe401218 mlp: include mlp.h and use MAX_CHANNELS instead of hardcoding value 8. diff -r 3a8dfce3dc17 -r b8b9ff6fa077 mlpdsp.c --- a/mlpdsp.c Fri May 15 07:49:59 2009 +0000 +++ b/mlpdsp.c Fri May 15 15:30:43 2009 +0000 @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavcodec/mlp.h" #include "dsputil.h" static void ff_mlp_filter_channel(int32_t *firbuf, const int32_t *fircoeff, int firorder, @@ -46,7 +47,7 @@ *--iirbuf = result - accum; *sample_buffer = result; - sample_buffer += 8; + sample_buffer += MAX_CHANNELS; } }