Commit 4d1f443c authored by Luca Barbato's avatar Luca Barbato

avformat: simplify avformat_close_input

avio_close checks by itself for NULL condition.
parent 58139e14
...@@ -2709,7 +2709,7 @@ void avformat_close_input(AVFormatContext **ps) ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment