From 0e0538aefc75958ded49f5d075c99a81cf6b2bbb Mon Sep 17 00:00:00 2001
From: Vittorio Giovara <vittorio.giovara@gmail.com>
Date: Wed, 20 Jul 2016 15:44:10 +0200
Subject: [PATCH] avprobe: Zero the allocated avio buffer memory

Fixes valgrind warning "Conditional jump or move depends on
uninitialised value(s)." from avio_flush().
---
 avprobe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/avprobe.c b/avprobe.c
index abaaee13745..5b9a7ec25c5 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -1039,7 +1039,7 @@ static int probe_buf_write(void *opaque, uint8_t *buf, int buf_size)
 int main(int argc, char **argv)
 {
     int ret;
-    uint8_t *buffer = av_malloc(AVP_BUFFSIZE);
+    uint8_t *buffer = av_mallocz(AVP_BUFFSIZE);
 
     if (!buffer)
         exit(1);
-- 
GitLab