ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Thu Jan  8 
14:50:34 2015 +0100| [26c72d2941d9e390597b04a6dee60befd36b55ac] | committer: 
Michael Niedermayer

avformat/img2dec: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michae...@gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26c72d2941d9e390597b04a6dee60befd36b55ac
---

 libavformat/img2dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 63de8fe..015a20a 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -469,7 +469,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt)
                 }
             }
             if (!s->is_pipe)
-                avio_close(f[i]);
+                avio_closep(&f[i]);
             if (ret[i] > 0)
                 pkt->size += ret[i];
         }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to