diff --git a/avprobe.c b/avprobe.c index abaaee137456883ccfc5ed59c268d89652ef1c04..5b9a7ec25c5f2fe898fce084f46573292e9955bf 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);