summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 81a4b34c4c..3a829a9d27 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2709,8 +2709,8 @@ void avformat_close_input(AVFormatContext **ps)
s->iformat->read_close(s);
avformat_free_context(s);
*ps = NULL;
- if (pb)
- avio_close(pb);
+
+ avio_close(pb);
}
AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)