[FFmpeg-cvslog] avutil/x86/cpu: fix cpuid sub-leaf selection

lvqcl git at videolan.org
Sun Oct 5 00:32:24 CEST 2014


ffmpeg | branch: release/2.4 | lvqcl <lvqcl.mail at gmail.com> | Sat Sep 27 13:21:31 2014 +0200| [da5e52010ce8b29e5ec7815477b49a2f3c0ba3df] | committer: Michael Niedermayer

avutil/x86/cpu: fix cpuid sub-leaf selection

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit e58fc44649d07d523fcd17aa10d9eb0d3a5ef3f4)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da5e52010ce8b29e5ec7815477b49a2f3c0ba3df
---

 libavutil/x86/cpu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/x86/cpu.c b/libavutil/x86/cpu.c
index 8ad4784..2b62e92 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))



More information about the ffmpeg-cvslog mailing list