OSDN Git Service

Bump cpu count limit from 8 to 64
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 7 Nov 2010 16:35:24 +0000 (16:35 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 7 Nov 2010 16:35:24 +0000 (16:35 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@3657 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/hb.c
libhb/ports.c

index 49f1cb9..3d669f2 100644 (file)
@@ -532,7 +532,7 @@ int hb_check_update( hb_handle_t * h, char ** version )
 void hb_set_cpu_count( hb_handle_t * h, int cpu_count )
 {
     cpu_count    = MAX( 1, cpu_count );
-    cpu_count    = MIN( cpu_count, 8 );
+    cpu_count    = MIN( cpu_count, 64 );
     h->cpu_count = cpu_count;
 }
 
index dbfcb66..64aad0e 100644 (file)
@@ -219,7 +219,7 @@ int hb_get_cpu_count()
 #endif
 
     cpu_count = MAX( 1, cpu_count );
-    cpu_count = MIN( cpu_count, 8 );
+    cpu_count = MIN( cpu_count, 64 );
 
     return cpu_count;
 }