diff options
author | Clément Bœsch <u@pkh.me> | 2016-06-25 19:14:21 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2016-06-25 19:14:21 +0200 |
commit | a887fbb582fe648c77aef2e6572132eec0310ae7 (patch) | |
tree | 6460de465df08a764d08c280853fd4565e0ea1c0 | |
parent | e73ccfd6ad10d25862bc0b459519524ec5dfb2b1 (diff) | |
download | ffmpeg-a887fbb582fe648c77aef2e6572132eec0310ae7.tar.gz |
lavfi/subtitles: remove unecessary checks
-rw-r--r-- | libavfilter/vf_subtitles.c | 6 |
1 files 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; } |