avvidec: increase default alignment to 32 bytes
authorTim-Philipp Müller <tim@centricular.com>
Fri, 28 Aug 2015 08:38:53 +0000 (09:38 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 15 Sep 2015 15:36:49 +0000 (16:36 +0100)
Change default alignment from 16 to 32 bytes, which fixes crashes
when decoding H.265 using AVX2-based decoder code paths and when
using ximagesink/glimagesink.

https://bugzilla.gnome.org/show_bug.cgi?id=754120

ext/libav/gstavviddec.c

index 3bf315e..c6c0d23 100644 (file)
@@ -48,7 +48,7 @@ GST_DEBUG_CATEGORY_EXTERN (GST_CAT_PERFORMANCE);
 #define DEFAULT_MAX_THREADS            0
 #define DEFAULT_OUTPUT_CORRUPT         TRUE
 #define REQUIRED_POOL_MAX_BUFFERS       32
-#define DEFAULT_STRIDE_ALIGN            15
+#define DEFAULT_STRIDE_ALIGN            31
 #define DEFAULT_ALLOC_PARAM             { 0, DEFAULT_STRIDE_ALIGN, 0, 0, }
 
 enum