aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-03-13 00:37:35 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2022-03-21 22:27:14 +0100
commit7aebdb8bf1fc3e09263617a7f49101cba2d43804 (patch)
treec00eb555a263c88982da2831617fcd39dd65e9d1
parent8d6f49cfc339825f3f3f8a910e4bb4c0f822db1f (diff)
downloadffmpeg-7aebdb8bf1fc3e09263617a7f49101cba2d43804.tar.gz
avformat/mxfdec: Do not clear array in mxf_read_strong_ref_array() before writing
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 49ed02185f..30dd40749c 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -942,7 +942,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);