ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Thu Jan  8 
20:11:00 2015 +0100| [d1d8f866b5400e1cb8ebbd06fde124642e894f31] | committer: 
Michael Niedermayer

avformat/mlvdec: 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=d1d8f866b5400e1cb8ebbd06fde124642e894f31
---

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

diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c
index 93d54e0..d0c51ae 100644
--- a/libavformat/mlvdec.c
+++ b/libavformat/mlvdec.c
@@ -445,7 +445,7 @@ static int read_close(AVFormatContext *s)
     int i;
     for (i = 0; i < 100; i++)
         if (mlv->pb[i])
-            avio_close(mlv->pb[i]);
+            avio_closep(&mlv->pb[i]);
     return 0;
 }
 

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

Reply via email to