ffprobe: Use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/68/merge
Michael Niedermayer 11 years ago
parent 3d4e365073
commit f0211f4189
  1. 2
      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;

Loading…
Cancel
Save