[x264-devel] commit: Fix crash with threads and SSEMisalign on Phenom ( Jason Garrett-Glaser )

git version control git at videolan.org
Tue Nov 25 06:56:59 CET 2008


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Mon Nov 24 21:56:24 2008 -0800| [b46f357e126c5db75f10a88103d7dfd240e00fd5] | committer: Jason Garrett-Glaser 

Fix crash with threads and SSEMisalign on Phenom
Misalign mask needed to be set separately for each encoding thread.

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

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

diff --git a/encoder/encoder.c b/encoder/encoder.c
index fbb2ea1..857d98a 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -1312,6 +1312,10 @@ static int x264_slices_write( x264_t *h )
 {
     int i_frame_size;
 
+    /* Misalign mask has to be set separately for each thread. */
+    if( h->param.cpu&X264_CPU_SSE_MISALIGN )
+        x264_cpu_mask_misalign_sse();
+
 #if VISUALIZE
     if( h->param.b_visualize )
         x264_visualize_init( h );



More information about the x264-devel mailing list