diff options
author | saintdev <[email protected]> | 2009-03-11 03:54:52 +0000 |
---|---|---|
committer | saintdev <[email protected]> | 2009-03-11 03:54:52 +0000 |
commit | 37d5d86a7674c8bb20c899184c30ec0128b367a8 (patch) | |
tree | c96022695551e806d898f1ece179da7ef6919fe4 /libhb | |
parent | 28cd4705bb1ac54e8b907cf0a11dcfcd06191c9e (diff) |
Fix CPU count detection on OSX.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2255 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/ports.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/ports.c b/libhb/ports.c index 2c3884436..1d2c4923f 100644 --- a/libhb/ports.c +++ b/libhb/ports.c @@ -138,7 +138,7 @@ int hb_get_cpu_count() cpu_count = info.cpu_count; #elif defined(SYS_DARWIN) || defined(SYS_FREEBSD) || defined(SYS_OPENBSD) - size_t length = sizeof( numberOfCPUs ); + size_t length = sizeof( cpu_count ); #ifdef SYS_OPENBSD int mib[2] = { CTL_HW, HW_NCPU }; if( sysctl(mib, 2, &cpu_count, &length, NULL, 0) ) |