summaryrefslogtreecommitdiff
path: root/libavcodec/x86/v210enc.asm
diff options
context:
space:
mode:
authorJames Darnley <james.darnley@gmail.com>2016-01-17 21:20:25 +0100
committerJames Darnley <james.darnley@gmail.com>2016-01-17 21:23:58 +0100
commitf59b727e2f982a22c4459c67b2f5f7f42c86d3d0 (patch)
tree44ce1a1f9a0f62121fd282c4b4d9a49bf3e79dec /libavcodec/x86/v210enc.asm
parent321e85e1769ca1fc1567025ae264760790ee7fc9 (diff)
downloadffmpeg-f59b727e2f982a22c4459c67b2f5f7f42c86d3d0.tar.gz
avcodec/v210: guard new avx2 functions from old assemblers
Diffstat (limited to 'libavcodec/x86/v210enc.asm')
-rw-r--r--libavcodec/x86/v210enc.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/x86/v210enc.asm b/libavcodec/x86/v210enc.asm
index d74e5ac4a1..0545454c47 100644
--- a/libavcodec/x86/v210enc.asm
+++ b/libavcodec/x86/v210enc.asm
@@ -95,8 +95,11 @@ cglobal v210_planar_pack_10, 5, 5, 4+cpuflag(avx2), y, u, v, dst, width
INIT_XMM ssse3
v210_planar_pack_10
+
+%if HAVE_AVX2_EXTERNAL
INIT_YMM avx2
v210_planar_pack_10
+%endif
%macro v210_planar_pack_8 0
@@ -168,5 +171,8 @@ INIT_XMM ssse3
v210_planar_pack_8
INIT_XMM avx
v210_planar_pack_8
+
+%if HAVE_AVX2_EXTERNAL
INIT_YMM avx2
v210_planar_pack_8
+%endif