aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-07-30 20:54:42 +0200
committerAnton Khirnov <anton@khirnov.net>2016-08-03 10:56:53 +0200
commit89aebc5bcc6e23a0a79c3f51c3a55c3571692ba0 (patch)
tree381d7226f4558a9010d421e531d9050ce91e2321 /libavcodec/utils.c
parent63ac8e2d93080b74f6be32c7c3c1a1e44aacf34e (diff)
downloadffmpeg-89aebc5bcc6e23a0a79c3f51c3a55c3571692ba0.tar.gz
lavc: align the linesize to 32 when AVX is enabled
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 4184b95e63..ce86bfa2a7 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -178,7 +178,9 @@ int ff_side_data_update_matrix_encoding(AVFrame *frame,
return 0;
}
-#if HAVE_SIMD_ALIGN_16
+#if HAVE_SIMD_ALIGN_32
+# define STRIDE_ALIGN 32
+#elif HAVE_SIMD_ALIGN_16
# define STRIDE_ALIGN 16
#else
# define STRIDE_ALIGN 8