summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2012-09-10 07:07:56 +0200
committerLuca Barbato <lu_zero@gentoo.org>2012-09-14 14:26:27 +0200
commit4d1f443c3d579cf9495c7a289282634908f6a538 (patch)
treec9764879e8d20f73e6c481c3e418e2a4fa46dcdb
parent58139e141bfd7116e527bae6a9f71c3b43fc8ff2 (diff)
avformat: simplify avformat_close_input
avio_close checks by itself for NULL condition.
-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)