10l
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 18 Jun 2004 02:45:09 +0000 (02:45 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 18 Jun 2004 02:45:09 +0000 (02:45 +0000)
Originally committed as revision 3231 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/resample.c

index b43b4da..56b7917 100644 (file)
@@ -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; i<s->filter_channels; i++)
+        av_free(bufin[i]);
 
     av_free(bufout[0]);
     av_free(bufout[1]);