summaryrefslogtreecommitdiffstats
path: root/libavcodec/resample.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-06-18 02:45:09 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-06-18 02:45:09 +0000
commitdca97cbe01bc17236c535b2866a0da1abacdd1c8 (patch)
tree736b15dc24130f3ba143f771e1da619732ec8114 /libavcodec/resample.c
parentbbec50d7abc2dc121d02c38272c0fc4467a35b62 (diff)
downloadffmpeg-streaming-dca97cbe01bc17236c535b2866a0da1abacdd1c8.zip
ffmpeg-streaming-dca97cbe01bc17236c535b2866a0da1abacdd1c8.tar.gz
10l
Originally committed as revision 3231 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/resample.c')
-rw-r--r--libavcodec/resample.c4
1 files changed, 2 insertions, 2 deletions
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; i<s->filter_channels; i++)
+ av_free(bufin[i]);
av_free(bufout[0]);
av_free(bufout[1]);
OpenPOWER on IntegriCloud