mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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:
parent
baa79ffecb
commit
dd82612340
1 changed files with 5 additions and 0 deletions
|
@ -1060,6 +1060,11 @@ gst_flv_mux_write_index (GstFlvMux * mux)
|
||||||
}
|
}
|
||||||
script_tag = gst_buffer_join (script_tag, tmp);
|
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);
|
tmp = gst_buffer_new_and_alloc (4);
|
||||||
data = GST_BUFFER_DATA (tmp);
|
data = GST_BUFFER_DATA (tmp);
|
||||||
GST_WRITE_UINT32_BE (data, GST_BUFFER_SIZE (script_tag));
|
GST_WRITE_UINT32_BE (data, GST_BUFFER_SIZE (script_tag));
|
||||||
|
|
Loading…
Reference in a new issue