aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlvqcl <lvqcl.mail@gmail.com>2014-09-27 13:21:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-12-21 04:40:03 +0100
commit1eb59e4d54023fb4ca86d587b380b1cf3067d170 (patch)
tree3633fce5174f6415a15262641228891823f844b1
parenta76198ed288bc93e9a4019c4f04f79a9cf210285 (diff)
downloadffmpeg-1eb59e4d54023fb4ca86d587b380b1cf3067d170.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 a3a5239159..9f8d7491e8 100644
--- a/libavutil/x86/cpu.c
+++ b/libavutil/x86/cpu.c
@@ -44,7 +44,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))