diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-05-15 15:30:43 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-05-15 15:30:43 +0000 |
commit | 42e64bf874ee7dae7cf78773e12fbb35571948e3 (patch) | |
tree | 61a6336059506e4863eae3cc975a53470db270db /libavcodec | |
parent | ebcf3b742bcc71355ddc7c1a83bb829425a9f754 (diff) | |
download | ffmpeg-42e64bf874ee7dae7cf78773e12fbb35571948e3.tar.gz |
mlp: include mlp.h and use MAX_CHANNELS instead of hardcoding value 8.
Originally committed as revision 18840 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mlpdsp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mlpdsp.c b/libavcodec/mlpdsp.c index c89bcc508b..4b4b7b5beb 100644 --- a/libavcodec/mlpdsp.c +++ b/libavcodec/mlpdsp.c @@ -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 @@ static void ff_mlp_filter_channel(int32_t *firbuf, const int32_t *fircoeff, int *--iirbuf = result - accum; *sample_buffer = result; - sample_buffer += 8; + sample_buffer += MAX_CHANNELS; } } |