Commit 1a4b5567 authored by Konstantin Pavlov's avatar Konstantin Pavlov Committed by Anton Khirnov

avplay: fix build with lavfi disabled.

Issue introduced in 67339f6e.
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent fe2147e9
...@@ -2236,7 +2236,9 @@ static void stream_component_close(VideoState *is, int stream_index) ...@@ -2236,7 +2236,9 @@ static void stream_component_close(VideoState *is, int stream_index)
ic->streams[stream_index]->discard = AVDISCARD_ALL; ic->streams[stream_index]->discard = AVDISCARD_ALL;
avcodec_close(avctx); avcodec_close(avctx);
#if CONFIG_AVFILTER
free_buffer_pool(&is->buffer_pool); free_buffer_pool(&is->buffer_pool);
#endif
switch (avctx->codec_type) { switch (avctx->codec_type) {
case AVMEDIA_TYPE_AUDIO: case AVMEDIA_TYPE_AUDIO:
is->audio_st = NULL; is->audio_st = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment