diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-03-13 00:37:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-03-28 23:18:56 +0200 |
commit | 5c1ae6738a5eea49225bb304e16faa8bb5407523 (patch) | |
tree | 824e45166a869310168680d54203daf48b0f216c | |
parent | d63e7c3b393021b791fb27385ecb8ad32450c56a (diff) | |
download | ffmpeg-5c1ae6738a5eea49225bb304e16faa8bb5407523.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 828fc0f9f1..f8c1df796b 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -941,7 +941,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); |