From adb01a23da13949f6ae44993e78eb8bd998f5ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 20 Nov 2015 17:34:22 +0200 Subject: [PATCH] mxfmpeg: Set the essence container UL byte 13 to 0x10 for h264 0x04 signifies a MPEG elementary stream but according to RP2008, 0x10 should be used for a h264 byte-stream. This also fixes compatibility of our files with ffmpeg. --- gst/mxf/mxfmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/mxf/mxfmpeg.c b/gst/mxf/mxfmpeg.c index 0b15bd838e..7b57d4ded0 100644 --- a/gst/mxf/mxfmpeg.c +++ b/gst/mxf/mxfmpeg.c @@ -1308,6 +1308,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[13] = 0x30; + ret->parent.parent.parent.essence_container.u[13] = 0x10; } else { g_assert_not_reached (); }