From b815c41b7eee708a9e6e14caadffa04839bbdecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 29 Sep 2016 17:40:23 +0300 Subject: [PATCH] qtmux: Write 4 bytes of zeroes at the end of the sample description extensions This is working around some broken software. https://bugzilla.gnome.org/show_bug.cgi?id=769048 --- gst/isomp4/atoms.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/isomp4/atoms.c b/gst/isomp4/atoms.c index 0709c56c3b..948bfb6511 100644 --- a/gst/isomp4/atoms.c +++ b/gst/isomp4/atoms.c @@ -1596,6 +1596,9 @@ atom_info_list_copy_data (GList * ai, guint8 ** buffer, guint64 * size, ai = g_list_next (ai); } + /* append 0 as a terminator "length" to work around some broken software */ + prop_copy_uint32 (0, buffer, size, offset); + return *offset - original_offset; }