]> git.sesse.net Git - ffmpeg/blobdiff - ffprobe.c
lavu/opt: add AV_OPT_VIDEO_RATE option
[ffmpeg] / ffprobe.c
index ef9bef44c7a8ab2d75321516d586179e1376de5e..4d2d3e1e47a9a219aed1a99b65f0d5c80c1522e8 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -300,7 +300,7 @@ static int writer_open(WriterContext **wctx, const Writer *writer, const char *a
 {
     int i, ret = 0;
 
-    if (!(*wctx = av_malloc(sizeof(WriterContext)))) {
+    if (!(*wctx = av_mallocz(sizeof(WriterContext)))) {
         ret = AVERROR(ENOMEM);
         goto fail;
     }