flvmux: properly finish the ECMA array

The ECMA array with the file index was missing a mandatory end marker.
Fixes bug #601242.
This commit is contained in:
Jan Urbański 2009-11-09 12:17:34 +01:00 committed by Sebastian Dröge
parent baa79ffecb
commit dd82612340

View file

@ -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));