GNOME Bugzilla – Bug 755708
matroskademux: assertion failed: (stream->alignment <= G_MEM_ALIGN)
Last modified: 2015-10-02 08:05:11 UTC
See https://ci.gstreamer.net/job/GStreamer-master-validate/lastCompletedBuild/testReport/validate.file.playback/scrub_forward_seeking/raw_video_mkv/ for example. Also in 1.6.0 but didn't cause crashes there because of disabled assertions. ERROR:matroska-demux.c:3704:gst_matroska_demux_parse_blockgroup_or_simpleblock: assertion failed: (stream->alignment <= G_MEM_ALIGN) Not sure why stream->alignment is required to be smaller than G_MEM_ALIGN.
Caused by this commit btw commit 3f8efd8af84365e79c45ec1ec964e4cc1a24bda1 Author: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> Date: Mon Aug 31 12:46:52 2015 +0200 matroskademux: Align raw video frames to 32 bytes Outputting unaligned video frames causes videoscale et al to crash when attempting SIMD-accelerated conversion. https://bugzilla.gnome.org/show_bug.cgi?id=736965
I suppose we could just replace the hardcoded 32 with G_MEM_ALIGN?
Hm, that may not work; I think G_MEM_ALIGN is 4 on i686 and 8 on x86_64, but SSE2 requires an alignment of 16.
commit 1cd4baa16a52d191739deff5b38bc88da67972cb Author: Sebastian Dröge <sebastian@centricular.com> Date: Mon Sep 28 18:03:51 2015 +0200 matroskademux: Remove leftover assertion from 0.10 We now allocate memory via GstAllocator and as such can handle arbitrary alignments, not only <= G_MEM_ALIGN. https://bugzilla.gnome.org/show_bug.cgi?id=755708