ffmpeg | branch: master | Clément Bœsch <u...@pkh.me> | Sat Jun 25 19:14:21 2016 +0200| [a887fbb582fe648c77aef2e6572132eec0310ae7] | committer: Clément Bœsch
lavfi/subtitles: remove unecessary checks > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a887fbb582fe648c77aef2e6572132eec0310ae7 --- libavfilter/vf_subtitles.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index c7c82b7..0f22644 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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog