]> git.videolan.org Git - x264.git/commitdiff
Fix possible crash on Phenom with lookahead thread disabled
authorJason Garrett-Glaser <jason@x264.com>
Fri, 28 Jan 2011 22:03:08 +0000 (14:03 -0800)
committerJason Garrett-Glaser <jason@x264.com>
Sat, 29 Jan 2011 22:07:11 +0000 (14:07 -0800)
Misalign mask needs to be set for the main thread on entry, too.

encoder/encoder.c

index 0182c8c5c88dd12a1ed30c4e0f8ba83251e81511..da147743c76487e620e3d356134d4aacdc25fc49 100644 (file)
@@ -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