[x264-devel] Fix possible crash on Phenom with lookahead thread disabled

Jason Garrett-Glaser git at videolan.org
Mon Feb 7 06:31:29 CET 2011


x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Fri Jan 28 14:03:08 2011 -0800| [1e45ed5537ac3854bcb2a0ed016ce23a9a68aa1a] | committer: Jason Garrett-Glaser

Fix possible crash on Phenom with lookahead thread disabled
Misalign mask needs to be set for the main thread on entry, too.

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

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

diff --git a/encoder/encoder.c b/encoder/encoder.c
index 0182c8c..da14774 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -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
 



More information about the x264-devel mailing list