diff --git a/avplay.c b/avplay.c index ee069b58ddc29e8cf4ec7b902bfb3a506ed81db0..3f2c4256c296175e70560e19cf4983b631d22782 100644 --- a/avplay.c +++ b/avplay.c @@ -2236,7 +2236,9 @@ static void stream_component_close(VideoState *is, int stream_index) ic->streams[stream_index]->discard = AVDISCARD_ALL; avcodec_close(avctx); +#if CONFIG_AVFILTER free_buffer_pool(&is->buffer_pool); +#endif switch (avctx->codec_type) { case AVMEDIA_TYPE_AUDIO: is->audio_st = NULL;