From f0211f4189a500144ca5ac4d08328439b70dabcb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 21 May 2014 15:59:22 +0200 Subject: [PATCH] ffprobe: Use av_malloc_array() Signed-off-by: Michael Niedermayer --- ffprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffprobe.c b/ffprobe.c index ad14fda2aa..2380ee16b2 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -2740,7 +2740,7 @@ static int parse_read_intervals(const char *intervals_spec) n++; n++; - read_intervals = av_malloc(n * sizeof(*read_intervals)); + read_intervals = av_malloc_array(n, sizeof(*read_intervals)); if (!read_intervals) { ret = AVERROR(ENOMEM); goto end;