mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
matroskademux: Properly use the alignment parameter of gst_buffer_new_allocate()
It's a bitmask for the alignment, not the alignment itself.
This commit is contained in:
parent
1f05fbf411
commit
57fb67eb59
1 changed files with 1 additions and 1 deletions
|
@ -3034,7 +3034,7 @@ gst_matroska_demux_align_buffer (GstMatroskaDemux * demux,
|
|||
GstBuffer *new_buffer;
|
||||
|
||||
new_buffer = gst_buffer_new_allocate (NULL,
|
||||
gst_buffer_get_size (buffer), alignment);
|
||||
gst_buffer_get_size (buffer), alignment - 1);
|
||||
|
||||
/* Copy data "by hand", so ensure alignment is kept: */
|
||||
gst_buffer_fill (new_buffer, 0, map.data, map.size);
|
||||
|
|
Loading…
Reference in a new issue