... | ... |
@@ -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 |
|