[x265] [PATCH 1 of 3] cli: fix multilib CPU detect, use detected cpuid from param

Steve Borho steve at borho.org
Tue Jun 30 19:30:48 CEST 2015


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1435679936 18000
#      Tue Jun 30 10:58:56 2015 -0500
# Node ID d9731802f1b79014a4508610f6dddaa5864d6033
# Parent  b1301944894051b9641006797e4d6253b277f3e4
cli: fix multilib CPU detect, use detected cpuid from param

if the linked library was build without assembly, param->cpuid will be 0 and
then the help will properly show no assembly will be used.

diff -r b13019448940 -r d9731802f1b7 source/x265.cpp
--- a/source/x265.cpp	Mon Jun 29 17:19:07 2015 +0530
+++ b/source/x265.cpp	Tue Jun 30 10:58:56 2015 -0500
@@ -424,7 +424,7 @@
 
         case 'V':
             printVersion(param, api);
-            x265_setup_primitives(param, -1);
+            x265_setup_primitives(param, param->cpuid);
             exit(0);
 
         default:


More information about the x265-devel mailing list