avvideodec: ensure required mem alignment fixing avdec_h265 crashes with ximagesink...
authorTim-Philipp Müller <tim@centricular.com>
Fri, 11 Sep 2015 22:19:21 +0000 (23:19 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 15 Sep 2015 15:36:30 +0000 (16:36 +0100)
commita0ebef96372a61f8dc658995fb4f1480512b365b
treec9071f60a94213723c937774770213b29e5e1d31
parentfa8679b4d8c36b834dbf9308bd6c71ad60dc14c3
avvideodec: ensure required mem alignment fixing avdec_h265 crashes with ximagesink/glimagesink

Make sure the alignment requirement in GstAllocationParams
matches the GstVideoAlignment requirements. This fixes
issues with avdec_h265 crashing in the avx2 code path when
used with playbin and ximagesink/glimagesink as videosink.

The internal video pool would allocate buffers with an
alignment of 15 even though GstVideoAlignment specified
a stride_align requirement of 31 (which comes from ffmpeg).

https://bugzilla.gnome.org/show_bug.cgi?id=754120
ext/libav/gstavviddec.c