From a887fbb582fe648c77aef2e6572132eec0310ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sat, 25 Jun 2016 19:14:21 +0200 Subject: [PATCH] lavfi/subtitles: remove unecessary checks --- libavfilter/vf_subtitles.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index c7c82b75c6..0f22644cc6 100644 --- a/libavfilter/vf_subtitles.c +++ b/libavfilter/vf_subtitles.c @@ -476,11 +476,9 @@ static av_cold int init_subtitles(AVFilterContext *ctx) end: av_dict_free(&codec_opts); - if (dec_ctx) - avcodec_close(dec_ctx); + avcodec_close(dec_ctx); avcodec_free_context(&dec_ctx); - if (fmt) - avformat_close_input(&fmt); + avformat_close_input(&fmt); return ret; }