From: Anton Mitrofanov Date: Tue, 11 May 2010 21:57:38 +0000 (+0400) Subject: Fix crash with sliced-threads on Phenom X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=444794d8c805b1951d985a1b5d1d1a2e5b8342a3;p=x264.git Fix crash with sliced-threads on Phenom --- diff --git a/encoder/encoder.c b/encoder/encoder.c index a71dce21..19cb79d0 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -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++ ) {