mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
mxfdec: set extradata size
The line setting it was mistakenly removed in
ecf442a58b
This commit is contained in:
parent
3c8507a845
commit
95fd52c11b
@ -1556,8 +1556,10 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
|
||||
}
|
||||
if (descriptor->extradata) {
|
||||
st->codec->extradata = av_mallocz(descriptor->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
if (st->codec->extradata)
|
||||
if (st->codec->extradata) {
|
||||
memcpy(st->codec->extradata, descriptor->extradata, descriptor->extradata_size);
|
||||
st->codec->extradata_size = descriptor->extradata_size;
|
||||
}
|
||||
} else if (st->codec->codec_id == AV_CODEC_ID_H264) {
|
||||
ret = ff_generate_avci_extradata(st);
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user