diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-26 15:41:12 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-11-29 14:19:47 +0100 |
commit | 95fd52c11bff1aad93a29aed3bd5472bd2981d1f (patch) | |
tree | 30480c7eb2764ebef72bf471b9aeff7b6e2c717a /libavformat/mxfdec.c | |
parent | 3c8507a845e68b2c0c7fb53ef4c6972db80acf21 (diff) | |
download | ffmpeg-95fd52c11bff1aad93a29aed3bd5472bd2981d1f.tar.gz |
mxfdec: set extradata size
The line setting it was mistakenly removed in
ecf442a58b09bdb1dc1d2c3904b82ac5f79b2878
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r-- | libavformat/mxfdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 91aded6163..0dd3f75bd5 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -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) |