From: Jason Garrett-Glaser Date: Fri, 28 Jan 2011 22:03:08 +0000 (-0800) Subject: Fix possible crash on Phenom with lookahead thread disabled X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=1e45ed5537ac3854bcb2a0ed016ce23a9a68aa1a;p=x264.git Fix possible crash on Phenom with lookahead thread disabled Misalign mask needs to be set for the main thread on entry, too. --- diff --git a/encoder/encoder.c b/encoder/encoder.c index 0182c8c5..da147743 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -2359,7 +2359,7 @@ int x264_encoder_encode( x264_t *h, thread_oldest = h; } #if HAVE_MMX - if( h->i_thread_frames == 1 && h->param.cpu&X264_CPU_SSE_MISALIGN ) + if( h->param.cpu&X264_CPU_SSE_MISALIGN ) x264_cpu_mask_misalign_sse(); #endif