aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-21 15:59:22 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-21 15:59:22 +0200
commitf0211f4189a500144ca5ac4d08328439b70dabcb (patch)
tree0ed66d807ca96d1dd4f615eb9f62d05ab1aee068 /ffprobe.c
parent3d4e365073c07287c351c29b58e99d0736bc640d (diff)
downloadffmpeg-f0211f4189a500144ca5ac4d08328439b70dabcb.tar.gz
ffprobe: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 1 insertions, 1 deletions
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;