aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlvqcl <lvqcl.mail@gmail.com>2014-09-27 13:21:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-03 03:40:59 +0200
commit437f6fb488416f602ded7f0d4fc41ca1f227d4a7 (patch)
treed1034729e3f36d971b75ea42e59fe6c4474e03b4
parentf913da3e15e09c7ec897206cde634b5d7b5162d4 (diff)
downloadffmpeg-437f6fb488416f602ded7f0d4fc41ca1f227d4a7.tar.gz
avutil/x86/cpu: fix cpuid sub-leaf selection
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit e58fc44649d07d523fcd17aa10d9eb0d3a5ef3f4) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/x86/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/x86/cpu.c b/libavutil/x86/cpu.c
index 8ad478400c..2b62e92479 100644
--- a/libavutil/x86/cpu.c
+++ b/libavutil/x86/cpu.c
@@ -45,7 +45,7 @@
"cpuid \n\t" \
"xchg %%"REG_b", %%"REG_S \
: "=a" (eax), "=S" (ebx), "=c" (ecx), "=d" (edx) \
- : "0" (index))
+ : "0" (index), "2"(0))
#define xgetbv(index, eax, edx) \
__asm__ (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (index))