Browse Source

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>
tags/n2.4
Michael Niedermayer 11 years ago
parent
commit
36ea35bbc0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/utils.c

+ 1
- 1
libavformat/utils.c View File

@@ -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;




Loading…
Cancel
Save