[FFmpeg-cvslog] mmsh/mmsh_close: use ffurl_closep()

Michael Niedermayer git at videolan.org
Mon Jun 17 22:17:20 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 17 21:34:52 2013 +0200| [c7755c348bbe9e8c56099b1e5e40722b02dec5ec] | committer: Michael Niedermayer

mmsh/mmsh_close: use ffurl_closep()

avoid using freed pointers

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

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

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

diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c
index 10d2a04..a6b53d9 100644
--- a/libavformat/mmsh.c
+++ b/libavformat/mmsh.c
@@ -66,7 +66,7 @@ static int mmsh_close(URLContext *h)
     MMSHContext *mmsh = (MMSHContext *)h->priv_data;
     MMSContext *mms   = &mmsh->mms;
     if (mms->mms_hd)
-        ffurl_close(mms->mms_hd);
+        ffurl_closep(&mms->mms_hd);
     av_freep(&mms->streams);
     av_freep(&mms->asf_header);
     return 0;



More information about the ffmpeg-cvslog mailing list