git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e73ccfd
)
lavfi/subtitles: remove unecessary checks
author
Clément Bœsch
<u@pkh.me>
Sat, 25 Jun 2016 17:14:21 +0000
(19:14 +0200)
committer
Clément Bœsch
<u@pkh.me>
Sat, 25 Jun 2016 17:14:21 +0000
(19:14 +0200)
libavfilter/vf_subtitles.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_subtitles.c
b/libavfilter/vf_subtitles.c
index
c7c82b7
..
0f22644
100644
(file)
--- 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;
}