mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg: remove unneeded NULL pointer check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
323355413d
commit
0409155261
2
ffmpeg.c
2
ffmpeg.c
|
@ -458,7 +458,7 @@ static void ffmpeg_cleanup(int ret)
|
||||||
for (i = 0; i < nb_output_files; i++) {
|
for (i = 0; i < nb_output_files; i++) {
|
||||||
OutputFile *of = output_files[i];
|
OutputFile *of = output_files[i];
|
||||||
AVFormatContext *s = of->ctx;
|
AVFormatContext *s = of->ctx;
|
||||||
if (s && s->oformat && !(s->oformat->flags & AVFMT_NOFILE) && s->pb)
|
if (s && s->oformat && !(s->oformat->flags & AVFMT_NOFILE))
|
||||||
avio_closep(&s->pb);
|
avio_closep(&s->pb);
|
||||||
avformat_free_context(s);
|
avformat_free_context(s);
|
||||||
av_dict_free(&of->opts);
|
av_dict_free(&of->opts);
|
||||||
|
|
Loading…
Reference in New Issue