Commit 5938e021 authored by Sean McGovern's avatar Sean McGovern Committed by Ronald S. Bultje

cpu detection: avoid a signed overflow

1<<31 overflows because 1 is signed, so force it to unsigned.
Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent 757b86cd
......@@ -113,7 +113,7 @@ int ff_get_cpu_flags_x86(void)
if(max_ext_level >= 0x80000001){
cpuid(0x80000001, eax, ebx, ecx, ext_caps);
if (ext_caps & (1<<31))
if (ext_caps & (1U<<31))
rval |= AV_CPU_FLAG_3DNOW;
if (ext_caps & (1<<30))
rval |= AV_CPU_FLAG_3DNOWEXT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment