From 0b721d524f47cf9b969ce4014e590786f7ff1cde Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 11 Mar 2018 09:23:26 +0100 Subject: qtmux: Fix ccdp atom size map is the input buffer mapinfo, we actually want to set the *outgoing* atom size. --- gst/isomp4/gstqtmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index bab212654..79b58d709 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -1006,7 +1006,7 @@ gst_qt_mux_prepare_caption_buffer (GstQTPad * qtpad, GstBuffer * buf, gst_buffer_map (newbuf, &map, GST_MAP_WRITE); - GST_WRITE_UINT32_BE (map.data, map.size + 8); + GST_WRITE_UINT32_BE (map.data, size + 8); GST_WRITE_UINT32_LE (map.data + 4, FOURCC_ccdp); memcpy (map.data + 8, inmap.data, inmap.size); -- cgit v1.2.3