summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Urbański <wulczer@wulczer.org>2009-11-09 12:17:34 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-11-18 08:03:43 +0100
commitdd82612340001e7ff821725ac257a0a36ab1fea7 (patch)
tree2607eb1d940062a6f5ce7a113d96b6ac4049450d
parentbaa79ffecb6d18eecbe8d5f8bdd3762946bc3e3d (diff)
flvmux: properly finish the ECMA array
The ECMA array with the file index was missing a mandatory end marker. Fixes bug #601242.
-rw-r--r--gst/flv/gstflvmux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c
index 89e8279fc..e1cb1438b 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));