diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 34e4cc984b..be6f6b6e27 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -861,7 +861,7 @@ static int mxf_read_strong_ref_array(AVIOContext *pb, UID **refs, int *count) *count = c; av_free(*refs); - *refs = av_calloc(*count, sizeof(UID)); + *refs = av_malloc_array(*count, sizeof(UID)); if (!*refs) { *count = 0; return AVERROR(ENOMEM);