[x264-devel] commit: Fix crash with sliced-threads on Phenom (Anton Mitrofanov )

git at videolan.org git at videolan.org
Mon May 17 18:39:46 CEST 2010


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Wed May 12 01:57:38 2010 +0400| [444794d8c805b1951d985a1b5d1d1a2e5b8342a3] | committer: Jason Garrett-Glaser 

Fix crash with sliced-threads on Phenom

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=444794d8c805b1951d985a1b5d1d1a2e5b8342a3
---

 encoder/encoder.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/encoder/encoder.c b/encoder/encoder.c
index a71dce2..19cb79d 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++ )
     {



More information about the x264-devel mailing list