avformat: simplify avformat_close_input

avio_close checks by itself for NULL condition.
pull/28/head
Luca Barbato 13 years ago
parent 58139e141b
commit 4d1f443c3d
  1. 2
      libavformat/utils.c

@ -2709,7 +2709,7 @@ void avformat_close_input(AVFormatContext **ps)
s->iformat->read_close(s); s->iformat->read_close(s);
avformat_free_context(s); avformat_free_context(s);
*ps = NULL; *ps = NULL;
if (pb)
avio_close(pb); avio_close(pb);
} }

Loading…
Cancel
Save