[FFmpeg-cvslog] avformat/mxfdec: Do not clear array in mxf_read_strong_ref_array() before writing
Michael Niedermayer
git at videolan.org
Mon Mar 21 23:27:43 EET 2022
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Mar 13 00:37:35 2022 +0100| [7aebdb8bf1fc3e09263617a7f49101cba2d43804] | committer: Michael Niedermayer
avformat/mxfdec: Do not clear array in mxf_read_strong_ref_array() before writing
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7aebdb8bf1fc3e09263617a7f49101cba2d43804
---
libavformat/mxfdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the ffmpeg-cvslog
mailing list