aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-13 22:56:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-13 23:25:17 +0200
commit36ea35bbc0e3364d7725a0eed8ebde258a3e75fd (patch)
treeea620b06052307971246cdbc96a0681e2397838e
parent89d42da5c62c2b5abb4e703f3ae4084821e3ee60 (diff)
downloadffmpeg-36ea35bbc0e3364d7725a0eed8ebde258a3e75fd.tar.gz
avformat/utils: free s->pb for image2 as it can be used with and without a file
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index d6e3e50d66..e899e4d071 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3548,7 +3548,7 @@ void avformat_close_input(AVFormatContext **ps)
s = *ps;
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))
pb = NULL;