[FFmpeg-cvslog] r21501 - trunk/libavformat/avio.c

benoit subversion
Thu Jan 28 10:11:26 CET 2010


Author: benoit
Date: Thu Jan 28 10:11:26 2010
New Revision: 21501

Log:
Use av_mallocz in url_open_protocol for URLContext.
Patch by Daniel Kristjansson: danielk cuymedia net

Modified:
   trunk/libavformat/avio.c

Modified: trunk/libavformat/avio.c
==============================================================================
--- trunk/libavformat/avio.c	Thu Jan 28 04:37:22 2010	(r21500)
+++ trunk/libavformat/avio.c	Thu Jan 28 10:11:26 2010	(r21501)
@@ -76,7 +76,7 @@ int url_open_protocol (URLContext **puc,
     URLContext *uc;
     int err;
 
-    uc = av_malloc(sizeof(URLContext) + strlen(filename) + 1);
+    uc = av_mallocz(sizeof(URLContext) + strlen(filename) + 1);
     if (!uc) {
         err = AVERROR(ENOMEM);
         goto fail;



More information about the ffmpeg-cvslog mailing list