ffprobe: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3d4e365073
commit
f0211f4189
@ -2740,7 +2740,7 @@ static int parse_read_intervals(const char *intervals_spec)
|
|||||||
n++;
|
n++;
|
||||||
n++;
|
n++;
|
||||||
|
|
||||||
read_intervals = av_malloc(n * sizeof(*read_intervals));
|
read_intervals = av_malloc_array(n, sizeof(*read_intervals));
|
||||||
if (!read_intervals) {
|
if (!read_intervals) {
|
||||||
ret = AVERROR(ENOMEM);
|
ret = AVERROR(ENOMEM);
|
||||||
goto end;
|
goto end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user