From 04091552616e6c5bea754ebbee26f77cb8ba416e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 9 Jan 2015 15:51:32 +0100 Subject: [PATCH] ffmpeg: remove unneeded NULL pointer check Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 0741eca261..f9aa65f765 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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);