--- xvid.c 2008/11/26 01:04:34 1.75 +++ xvid.c 2008/11/28 16:42:50 1.77 @@ -19,7 +19,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: xvid.c,v 1.75 2008/11/26 01:04:34 Isibaar Exp $ + * $Id: xvid.c,v 1.77 2008/11/28 16:42:50 Isibaar Exp $ * ****************************************************************************/ @@ -542,7 +542,7 @@ /* DCT operators */ fdct = fdct_sse2_skal; - idct = idct_sse2_skal; /* Is now IEEE1180 and Walken compliant. */ + idct = idct_sse2_skal; /* Is now IEEE1180 and Walken compliant. */ /* postprocessing */ image_brightness = image_brightness_sse2; @@ -674,6 +674,11 @@ if ((dwProcessAffinityMask & (1<num_threads++; } + if (info->num_threads == 0) { + SYSTEM_INFO siSysInfo; + GetSystemInfo(&siSysInfo); + info->num_threads = siSysInfo.dwNumberOfProcessors; /* number of _logical_ cores */ + } } } #else