Commit 04091552 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: remove unneeded NULL pointer check

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 32335541
......@@ -458,7 +458,7 @@ static void ffmpeg_cleanup(int ret)
for (i = 0; i < nb_output_files; i++) {
OutputFile *of = output_files[i];
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);
avformat_free_context(s);
av_dict_free(&of->opts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment