From dd82612340001e7ff821725ac257a0a36ab1fea7 Mon Sep 17 00:00:00 2001 From: Jan UrbaƄski Date: Mon, 9 Nov 2009 12:17:34 +0100 Subject: flvmux: properly finish the ECMA array The ECMA array with the file index was missing a mandatory end marker. Fixes bug #601242. --- gst/flv/gstflvmux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c index 89e8279f..e1cb1438 100644 --- a/gst/flv/gstflvmux.c +++ b/gst/flv/gstflvmux.c @@ -1060,6 +1060,11 @@ gst_flv_mux_write_index (GstFlvMux * mux) } script_tag = gst_buffer_join (script_tag, tmp); + tmp = gst_buffer_new_and_alloc (3); + data = GST_BUFFER_DATA (tmp); + GST_WRITE_UINT24_BE (data, 9); /* finish the ECMA array */ + script_tag = gst_buffer_join (script_tag, tmp); + tmp = gst_buffer_new_and_alloc (4); data = GST_BUFFER_DATA (tmp); GST_WRITE_UINT32_BE (data, GST_BUFFER_SIZE (script_tag)); -- cgit v1.2.3