ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Thu Jan  8 
20:09:30 2015 +0100| [07e4ed5637f5484cac4f5af2b890a8720b39e0b7] | committer: 
Michael Niedermayer

avformat/mov: 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=07e4ed5637f5484cac4f5af2b890a8720b39e0b7
---

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 248faf7..19ec11f 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3754,7 +3754,7 @@ static int mov_read_close(AVFormatContext *s)
         sc->drefs_count = 0;
 
         if (!sc->pb_is_copied)
-            avio_close(sc->pb);
+            avio_closep(&sc->pb);
 
         sc->pb = NULL;
         av_freep(&sc->chunk_offsets);

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

Reply via email to