Blame SOURCES/Bug-fix-in-ssse3-quantize-function.patch

0a4abc
commit 0d43bd77e5f429467fbd280a7b8f7fbc0bfe1809
0a4abc
Author: Yunqing Wang <yunqingwang@google.com>
0a4abc
Date:   Fri Feb 7 14:27:07 2014 -0800
0a4abc
0a4abc
    Bug fix in ssse3 quantize function
0a4abc
    
0a4abc
    A bug was reported in Issue 702: "SIGILL (Illegal instruction) when
0a4abc
    transcoding with vp9 - using FFmpeg". It was reproduced and fixed.
0a4abc
    
0a4abc
    Change-Id: Ie32c149a89af02856084aeaf289e848a905c7700
0a4abc
0a4abc
diff --git a/vp9/encoder/x86/vp9_quantize_ssse3.asm b/vp9/encoder/x86/vp9_quantize_ssse3.asm
0a4abc
index db30660..48ccef8 100644
0a4abc
--- a/vp9/encoder/x86/vp9_quantize_ssse3.asm
0a4abc
+++ b/vp9/encoder/x86/vp9_quantize_ssse3.asm
0a4abc
@@ -188,7 +188,8 @@ cglobal quantize_%1, 0, %2, 15, coeff, ncoeff, skip, zbin, round, quant, \
0a4abc
   pmaxsw                          m8, m7
0a4abc
   pshuflw                         m7, m8, 0x1
0a4abc
   pmaxsw                          m8, m7
0a4abc
-  pextrw                        [r2], m8, 0
0a4abc
+  pextrw                          r6, m8, 0
0a4abc
+  mov                             [r2], r6
0a4abc
   RET
0a4abc
 
0a4abc
   ; skip-block, i.e. just write all zeroes
0a4abc
@@ -214,5 +215,5 @@ cglobal quantize_%1, 0, %2, 15, coeff, ncoeff, skip, zbin, round, quant, \
0a4abc
 %endmacro
0a4abc
 
0a4abc
 INIT_XMM ssse3
0a4abc
-QUANTIZE_FN b, 6
0a4abc
+QUANTIZE_FN b, 7
0a4abc
 QUANTIZE_FN b_32x32, 7