Commit 36ea35bb authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/utils: free s->pb for image2 as it can be used with and without a file

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 89d42da5
...@@ -3548,7 +3548,7 @@ void avformat_close_input(AVFormatContext **ps) ...@@ -3548,7 +3548,7 @@ void avformat_close_input(AVFormatContext **ps)
s = *ps; s = *ps;
pb = s->pb; pb = s->pb;
if ((s->iformat && s->iformat->flags & AVFMT_NOFILE) || if ((s->iformat && strcmp(s->iformat->name, "image2") && s->iformat->flags & AVFMT_NOFILE) ||
(s->flags & AVFMT_FLAG_CUSTOM_IO)) (s->flags & AVFMT_FLAG_CUSTOM_IO))
pb = NULL; 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