You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/mxfdec: Do not clear array in mxf_read_strong_ref_array() before writing
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -942,7 +942,7 @@ static int mxf_read_strong_ref_array(AVIOContext *pb, UID **refs, int *count)
|
|||||||
*count = c;
|
*count = c;
|
||||||
|
|
||||||
av_free(*refs);
|
av_free(*refs);
|
||||||
*refs = av_calloc(*count, sizeof(UID));
|
*refs = av_malloc_array(*count, sizeof(UID));
|
||||||
if (!*refs) {
|
if (!*refs) {
|
||||||
*count = 0;
|
*count = 0;
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
Reference in New Issue
Block a user