Skip to content

Commit 0409155

Browse files
committed
ffmpeg: remove unneeded NULL pointer check
Signed-off-by: Michael Niedermayer <[email protected]>
1 parent 3233554 commit 0409155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffmpeg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ static void ffmpeg_cleanup(int ret)
458458
for (i = 0; i < nb_output_files; i++) {
459459
OutputFile *of = output_files[i];
460460
AVFormatContext *s = of->ctx;
461-
if (s && s->oformat && !(s->oformat->flags & AVFMT_NOFILE) && s->pb)
461+
if (s && s->oformat && !(s->oformat->flags & AVFMT_NOFILE))
462462
avio_closep(&s->pb);
463463
avformat_free_context(s);
464464
av_dict_free(&of->opts);

0 commit comments

Comments
 (0)