From dca97cbe01bc17236c535b2866a0da1abacdd1c8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 18 Jun 2004 02:45:09 +0000 Subject: 10l Originally committed as revision 3231 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/resample.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/resample.c') diff --git a/libavcodec/resample.c b/libavcodec/resample.c index b43b4da..56b7917 100644 --- a/libavcodec/resample.c +++ b/libavcodec/resample.c @@ -231,8 +231,8 @@ int audio_resample(ReSampleContext *s, short *output, short *input, int nb_sampl ac3_5p1_mux(output, buftmp3[0], buftmp3[1], nb_samples1); } - av_free(bufin[0]); - av_free(bufin[1]); + for(i=0; ifilter_channels; i++) + av_free(bufin[i]); av_free(bufout[0]); av_free(bufout[1]); -- cgit v1.1