lavu/x86/cpu: Fix aesni detection
authoralexander schmid <sa.lex@web.de>
Mon, 16 Jul 2018 08:43:11 +0000 (10:43 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Thu, 19 Jul 2018 18:17:44 +0000 (20:17 +0200)
libavutil/x86/cpu.c

index aca8931..bcd41a5 100644 (file)
@@ -127,7 +127,7 @@ int ff_get_cpu_flags_x86(void)
             rval |= AV_CPU_FLAG_SSE4;
         if (ecx & 0x00100000 )
             rval |= AV_CPU_FLAG_SSE42;
-        if (ecx & 0x01000000 )
+        if (ecx & 0x02000000 )
             rval |= AV_CPU_FLAG_AESNI;
 #if HAVE_AVX
         /* Check OXSAVE and AVX bits */