diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-14 21:31:53 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-20 01:03:52 +0200 |
commit | 1ea365082318f06cd42a8b37dd0c7724b599c821 (patch) | |
tree | 4df48a8b9f4614803fd2a88c29ad2ff7f7070294 /libavcodec/cavs.c | |
parent | 4b154743163ffbe3fdc50759c0c55dc854636488 (diff) | |
download | ffmpeg-1ea365082318f06cd42a8b37dd0c7724b599c821.tar.gz |
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>
Diffstat (limited to 'libavcodec/cavs.c')
-rw-r--r-- | libavcodec/cavs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c index 74b8371501..e29d9c659b 100644 --- a/libavcodec/cavs.c +++ b/libavcodec/cavs.c @@ -762,16 +762,16 @@ int ff_cavs_init_top_lines(AVSContext *h) { /* alloc top line of predictors */ h->top_qp = av_mallocz(h->mb_width); - h->top_mv[0] = av_mallocz_array(h->mb_width * 2 + 1, sizeof(cavs_vector)); - h->top_mv[1] = av_mallocz_array(h->mb_width * 2 + 1, sizeof(cavs_vector)); - h->top_pred_Y = av_mallocz_array(h->mb_width * 2, sizeof(*h->top_pred_Y)); - h->top_border_y = av_mallocz_array(h->mb_width + 1, 16); - h->top_border_u = av_mallocz_array(h->mb_width, 10); - h->top_border_v = av_mallocz_array(h->mb_width, 10); + h->top_mv[0] = av_calloc(h->mb_width * 2 + 1, sizeof(cavs_vector)); + h->top_mv[1] = av_calloc(h->mb_width * 2 + 1, sizeof(cavs_vector)); + h->top_pred_Y = av_calloc(h->mb_width * 2, sizeof(*h->top_pred_Y)); + h->top_border_y = av_calloc(h->mb_width + 1, 16); + h->top_border_u = av_calloc(h->mb_width, 10); + h->top_border_v = av_calloc(h->mb_width, 10); /* alloc space for co-located MVs and types */ - h->col_mv = av_mallocz_array(h->mb_width * h->mb_height, - 4 * sizeof(cavs_vector)); + h->col_mv = av_calloc(h->mb_width * h->mb_height, + 4 * sizeof(*h->col_mv)); h->col_type_base = av_mallocz(h->mb_width * h->mb_height); h->block = av_mallocz(64 * sizeof(int16_t)); |