v210: x86: Add the correct guards around the asm code
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 24 Jan 2016 15:58:19 +0000 (16:58 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 26 Jan 2016 22:31:57 +0000 (23:31 +0100)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/x86/v210enc.asm

index 595c890..bdefcdb 100644 (file)
@@ -82,8 +82,10 @@ cglobal v210_planar_pack_10, 5, 5, 4, y, u, v, dst, width
     RET
 %endmacro
 
+%if HAVE_SSSE3_EXTERNAL
 INIT_XMM ssse3
 v210_planar_pack_10
+%endif
 
 %macro v210_planar_pack_8 0
 
@@ -139,7 +141,11 @@ cglobal v210_planar_pack_8, 5, 5, 7, y, u, v, dst, width
     RET
 %endmacro
 
+%if HAVE_SSSE3_EXTERNAL
 INIT_XMM ssse3
 v210_planar_pack_8
+%endif
+%if HAVE_AVX_EXTERNAL
 INIT_XMM avx
 v210_planar_pack_8
+%endif