1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-28 12:32:17 +02:00

lavfi/subtitles: remove unecessary checks

This commit is contained in:
Clément Bœsch 2016-06-25 19:14:21 +02:00
parent e73ccfd6ad
commit a887fbb582

View File

@ -476,11 +476,9 @@ static av_cold int init_subtitles(AVFilterContext *ctx)
end: end:
av_dict_free(&codec_opts); av_dict_free(&codec_opts);
if (dec_ctx) avcodec_close(dec_ctx);
avcodec_close(dec_ctx);
avcodec_free_context(&dec_ctx); avcodec_free_context(&dec_ctx);
if (fmt) avformat_close_input(&fmt);
avformat_close_input(&fmt);
return ret; return ret;
} }