mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
matroskamux: fix regression causing malformed files
This was caused by me in 1b213d. It seems I was too focused on 0.11 when I did this and tested the wrong branch. The problem was reported by Alexey Fisher.
This commit is contained in:
parent
d65490dfad
commit
2a139a28d9
1 changed files with 4 additions and 2 deletions
|
@ -411,10 +411,12 @@ gst_ebml_write_element_push (GstEbmlWrite * ebml, GstBuffer * buf,
|
||||||
if (!buf_data)
|
if (!buf_data)
|
||||||
buf_data = GST_BUFFER_DATA (buf);
|
buf_data = GST_BUFFER_DATA (buf);
|
||||||
|
|
||||||
if (buf_data_end)
|
if (buf_data_end) {
|
||||||
data_size = buf_data_end - buf_data;
|
data_size = buf_data_end - buf_data;
|
||||||
else
|
GST_BUFFER_SIZE (buf) = data_size;
|
||||||
|
} else {
|
||||||
data_size = GST_BUFFER_SIZE (buf);
|
data_size = GST_BUFFER_SIZE (buf);
|
||||||
|
}
|
||||||
|
|
||||||
ebml->pos += data_size;
|
ebml->pos += data_size;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue