mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 01:40:04 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user