[FFmpeg-cvslog] avformat/mlvdec: Use avio_closep() to avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Thu Jan 8 20:31:26 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at 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 <michaelni at 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;
 }
 



More information about the ffmpeg-cvslog mailing list