]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avio.c
Include msrledec.h: It contains the prototype for ff_msrle_decode().
[ffmpeg] / libavformat / avio.c
index ca022c8eb1691aa275980ed4b3230c0706813e93..ec427deea39a1dcfb98c39ccc243250457582eda 100644 (file)
@@ -76,7 +76,7 @@ int url_open_protocol (URLContext **puc, struct URLProtocol *up,
     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;