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
@ -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…
x
Reference in New Issue
Block a user