diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-01-28 16:41:31 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-01-28 18:54:29 +0100 |
commit | 45048662a187f844284ffd0d7adbf90305f39546 (patch) | |
tree | 07946f8d8bad921abf9e711aeb86f8eb20c829dd /gst/mxf | |
parent | e48c5ed81691162fb0882303a306e24439717acd (diff) | |
download | gstreamer-plugins-bad-45048662a187f844284ffd0d7adbf90305f39546.tar.gz |
mxfmpeg: Write version number into the picture essence coding UL
Diffstat (limited to 'gst/mxf')
-rw-r--r-- | gst/mxf/mxfmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/mxf/mxfmpeg.c b/gst/mxf/mxfmpeg.c index da357223b..9ac1f46f2 100644 --- a/gst/mxf/mxfmpeg.c +++ b/gst/mxf/mxfmpeg.c @@ -1273,12 +1273,14 @@ mxf_mpeg_video_get_descriptor (GstPadTemplate * tmpl, GstCaps * caps, *mapping_data = g_new0 (MXFMPEGEssenceType, 1); memcpy (*mapping_data, &type, sizeof (MXFMPEGEssenceType)); + ret->parent.parent.picture_essence_coding.u[7] = 0x03; ret->parent.parent.picture_essence_coding.u[13] = 0x10; } else if (mpegversion == 2) { MXFMPEGEssenceType type = MXF_MPEG_ESSENCE_TYPE_VIDEO_MPEG2; *mapping_data = g_new0 (MXFMPEGEssenceType, 1); memcpy (*mapping_data, &type, sizeof (MXFMPEGEssenceType)); + ret->parent.parent.picture_essence_coding.u[7] = 0x01; ret->parent.parent.picture_essence_coding.u[13] = 0x01; } else { const GValue *v; @@ -1288,6 +1290,7 @@ mxf_mpeg_video_get_descriptor (GstPadTemplate * tmpl, GstCaps * caps, *mapping_data = g_new0 (MXFMPEGEssenceType, 1); memcpy (*mapping_data, &type, sizeof (MXFMPEGEssenceType)); + ret->parent.parent.picture_essence_coding.u[7] = 0x03; ret->parent.parent.picture_essence_coding.u[13] = 0x20; if ((v = gst_structure_get_value (s, "codec_data"))) { MXFLocalTag *t = g_slice_new0 (MXFLocalTag); @@ -1307,6 +1310,7 @@ mxf_mpeg_video_get_descriptor (GstPadTemplate * tmpl, GstCaps * caps, *mapping_data = g_new0 (MXFMPEGEssenceType, 1); memcpy (*mapping_data, &type, sizeof (MXFMPEGEssenceType)); + ret->parent.parent.picture_essence_coding.u[7] = 0x0a; ret->parent.parent.picture_essence_coding.u[13] = 0x30; ret->parent.parent.parent.essence_container.u[13] = 0x10; } else { |