qtmux: Write 4 bytes of zeroes at the end of the sample description extensions
authorSebastian Dröge <sebastian@centricular.com>
Thu, 29 Sep 2016 14:40:23 +0000 (17:40 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Nov 2016 18:41:22 +0000 (20:41 +0200)
This is working around some broken software.

https://bugzilla.gnome.org/show_bug.cgi?id=769048

gst/isomp4/atoms.c

index 0709c56..948bfb6 100644 (file)
@@ -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;
 }