[FFmpeg-cvslog] mxfdec: set extradata size

Anton Khirnov git at videolan.org
Fri Nov 29 22:20:03 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Nov 26 15:41:12 2013 +0100| [95fd52c11bff1aad93a29aed3bd5472bd2981d1f] | committer: Anton Khirnov

mxfdec: set extradata size

The line setting it was mistakenly removed in
ecf442a58b09bdb1dc1d2c3904b82ac5f79b2878

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=95fd52c11bff1aad93a29aed3bd5472bd2981d1f
---

 libavformat/mxfdec.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 91aded6..0dd3f75 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)



More information about the ffmpeg-cvslog mailing list