aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-09-18 15:14:53 -0300
committerJames Almer <jamrial@gmail.com>2015-09-18 15:14:53 -0300
commite47564828b9b351f874f24d66306294b7741b768 (patch)
treec0aa0ff6bfc996fc18a89e0e50365a9c35f471a5
parent5b48dd75d578ae694779d0212cf85f6c84453b7c (diff)
downloadffmpeg-e47564828b9b351f874f24d66306294b7741b768.tar.gz
x86/vp9mc: add missing preprocessor guards
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/x86/vp9mc_16bpp.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/x86/vp9mc_16bpp.asm b/libavcodec/x86/vp9mc_16bpp.asm
index d66da5548f..f60dab7a63 100644
--- a/libavcodec/x86/vp9mc_16bpp.asm
+++ b/libavcodec/x86/vp9mc_16bpp.asm
@@ -201,9 +201,11 @@ cglobal vp9_%1_8tap_1d_h_ %+ %%px %+ _12, 6, 6, %2, dst, dstride, src, sstride,
INIT_XMM sse2
filter_h_fn put
filter_h_fn avg
+%if HAVE_AVX2_EXTERNAL
INIT_YMM avx2
filter_h_fn put
filter_h_fn avg
+%endif
%macro filter_v4_fn 1-2 12
%if ARCH_X86_64
@@ -422,6 +424,8 @@ cglobal vp9_%1_8tap_1d_v_ %+ %%px %+ _12, 4, 7, %2, dst, dstride, src, sstride,
INIT_XMM sse2
filter_v_fn put
filter_v_fn avg
+%if HAVE_AVX2_EXTERNAL
INIT_YMM avx2
filter_v_fn put
filter_v_fn avg
+%endif