Browse code

lavfi/subtitles: remove unecessary checks

Clément Bœsch authored on 2016/06/26 02:14:21
Showing 1 changed files
... ...
@@ -476,11 +476,9 @@ static av_cold int init_subtitles(AVFilterContext *ctx)
476 476
 
477 477
 end:
478 478
     av_dict_free(&codec_opts);
479
-    if (dec_ctx)
480
-        avcodec_close(dec_ctx);
479
+    avcodec_close(dec_ctx);
481 480
     avcodec_free_context(&dec_ctx);
482
-    if (fmt)
483
-        avformat_close_input(&fmt);
481
+    avformat_close_input(&fmt);
484 482
     return ret;
485 483
 }
486 484