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 7aebdb8bf1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
d63e7c3b39
commit
5c1ae6738a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue