]> git.videolan.org Git - x264.git/commitdiff
Fix crash with sliced-threads on Phenom
authorAnton Mitrofanov <BugMaster@narod.ru>
Tue, 11 May 2010 21:57:38 +0000 (01:57 +0400)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 17 May 2010 05:51:15 +0000 (22:51 -0700)
encoder/encoder.c

index a71dce21908b624d28254df3890ee265ffc58872..19cb79d0c0ba1eb8a0aaacdc2e15e4becc317d23 100644 (file)
@@ -2066,6 +2066,10 @@ static void *x264_slices_write( x264_t *h )
 static int x264_threaded_slices_write( x264_t *h )
 {
     void *ret = NULL;
+#ifdef HAVE_MMX
+    if( h->param.cpu&X264_CPU_SSE_MISALIGN )
+        x264_cpu_mask_misalign_sse();
+#endif
     /* set first/last mb and sync contexts */
     for( int i = 0; i < h->param.i_threads; i++ )
     {