mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 19:40:07 +01:00
Replace all occurences of av_mallocz_array() by av_calloc()
They do the same. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -172,7 +172,7 @@ static int read_shape_from_file(int *cols, int *rows, int **values, const char *
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
goto end;
|
||||
}
|
||||
if (!(*values = av_mallocz_array(sizeof(int) * *rows, *cols))) {
|
||||
if (!(*values = av_calloc(sizeof(int) * *rows, *cols))) {
|
||||
ret = AVERROR(ENOMEM);
|
||||
goto end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user