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/hevcdec.c | |
parent | 4b154743163ffbe3fdc50759c0c55dc854636488 (diff) |
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/hevcdec.c')
-rw-r--r-- | libavcodec/hevcdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index eafb883429..57a61752a3 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -99,8 +99,8 @@ static int pic_arrays_init(HEVCContext *s, const HEVCSPS *sps) s->bs_width = (width >> 2) + 1; s->bs_height = (height >> 2) + 1; - s->sao = av_mallocz_array(ctb_count, sizeof(*s->sao)); - s->deblock = av_mallocz_array(ctb_count, sizeof(*s->deblock)); + s->sao = av_calloc(ctb_count, sizeof(*s->sao)); + s->deblock = av_calloc(ctb_count, sizeof(*s->deblock)); if (!s->sao || !s->deblock) goto fail; @@ -123,8 +123,8 @@ static int pic_arrays_init(HEVCContext *s, const HEVCSPS *sps) if (!s->qp_y_tab || !s->filter_slice_edges || !s->tab_slice_address) goto fail; - s->horizontal_bs = av_mallocz_array(s->bs_width, s->bs_height); - s->vertical_bs = av_mallocz_array(s->bs_width, s->bs_height); + s->horizontal_bs = av_calloc(s->bs_width, s->bs_height); + s->vertical_bs = av_calloc(s->bs_width, s->bs_height); if (!s->horizontal_bs || !s->vertical_bs) goto fail; |