shithub: openh264

Download patch

ref: eb221eb3d143ec256df1a7063abfdc1a4708e5e7
parent: 58349156b1544d65a1ddc65f1e7f3d251e4f3415
parent: 68b4b09ae6e39c115107aac819384f3a5568d9b4
author: zhilwang <[email protected]>
date: Mon Jun 30 06:05:26 EDT 2014

Merge pull request #1030 from mstorsjo/cpuid-32bit-param

Don't load undefined bits into rcx before calling the cpuid instruction

--- a/codec/common/x86/cpuid.asm
+++ b/codec/common/x86/cpuid.asm
@@ -81,7 +81,7 @@
     push     rdx
 
     mov      eax,     ecx
-    mov      rcx,     [r9]
+    mov      ecx,     [r9]
     cpuid
     mov      [r9],    ecx
     mov      [r8],    ebx
@@ -100,7 +100,7 @@
     push     rdx
 
     mov      eax,     edi
-    mov      rcx,     [rcx]
+    mov      ecx,     [rcx]
     cpuid
     mov      [r8],    edx
     pop      rdx