lavfi/subtitles: remove unecessary checks
authorClément Bœsch <u@pkh.me>
Sat, 25 Jun 2016 17:14:21 +0000 (19:14 +0200)
committerClément Bœsch <u@pkh.me>
Sat, 25 Jun 2016 17:14:21 +0000 (19:14 +0200)
libavfilter/vf_subtitles.c

index c7c82b7..0f22644 100644 (file)
@@ -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;
 }