Commit 0d6605c7 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Luca Barbato
Browse files

mxf: Fix a possible leak of extradata

Signed-off-by: default avatarLuca Barbato <>
parent 1a4e4ad0
......@@ -858,6 +858,8 @@ static int mxf_read_generic_descriptor(void *arg, AVIOContext *pb, int tag, int
/* Private uid used by SONY C0023S01.mxf */
if (IS_KLV_KEY(uid, mxf_sony_mpeg4_extradata)) {
descriptor->extradata_size = 0;
descriptor->extradata = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
if (!descriptor->extradata)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment