aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-03-13 00:37:35 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2022-04-06 20:27:35 +0200
commit45a021aba12e32300e50002155d0cafb1ec154ab (patch)
treefa8aa13325fe4d073d01eeae238edb906f9fc406
parent2ad47d59afaa1684801f0938adcb4a91e7983a67 (diff)
downloadffmpeg-45a021aba12e32300e50002155d0cafb1ec154ab.tar.gz
avformat/mxfdec: Do not clear array in mxf_read_strong_ref_array() before writing
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 7aebdb8bf1fc3e09263617a7f49101cba2d43804) 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 adc978d64b..6ceaf9c3df 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -884,7 +884,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);