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:
Andreas Rheinhardt
2021-09-14 21:31:53 +02:00
parent 4b15474316
commit 1ea3650823
131 changed files with 302 additions and 301 deletions

View File

@@ -612,8 +612,8 @@ int ff_stream_encode_params_copy(AVStream *dst, const AVStream *src)
/* Copy side data if present */
if (src->nb_side_data) {
dst->side_data = av_mallocz_array(src->nb_side_data,
sizeof(AVPacketSideData));
dst->side_data = av_calloc(src->nb_side_data,
sizeof(*dst->side_data));
if (!dst->side_data)
return AVERROR(ENOMEM);
dst->nb_side_data = src->nb_side_data;