diff options
author | lvqcl <lvqcl.mail@gmail.com> | 2014-09-27 13:21:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-28 18:44:38 +0100 |
commit | 8dd6075a7f286e46d01da6790ec66a5a9d42a5f9 (patch) | |
tree | 792aa47ca80233434ec6b721828e1e4c5eed3b4c | |
parent | 9c61b4494113dbedea1419632a368b77e414d26e (diff) | |
download | ffmpeg-8dd6075a7f286e46d01da6790ec66a5a9d42a5f9.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/x86/cpu.c b/libavutil/x86/cpu.c index 18049eaead..65ec8259ab 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)) |