Commit 3f7fd59d authored by Luca Barbato's avatar Luca Barbato

avformat: fix typo in avformat_close_input

The condition should not be &&.
parent 7040c9fa
......@@ -2704,7 +2704,7 @@ void avformat_close_input(AVFormatContext **ps)
AVFormatContext *s = *ps;
AVIOContext *pb = s->pb;
if ((s->iformat && s->iformat->flags & AVFMT_NOFILE) &&
if ((s->iformat && s->iformat->flags & AVFMT_NOFILE) ||
(s->flags & AVFMT_FLAG_CUSTOM_IO))
pb = NULL;
......
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