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:
Sebastian Dröge 2012-01-26 11:29:11 +01:00
parent 1f05fbf411
commit 57fb67eb59

View file

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