[vlc-commits] avcodec-hw: fix crash on some CPUs

Rafaël Carré git at videolan.org
Wed Oct 3 09:06:21 CEST 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Oct  3 09:05:33 2012 +0200| [50fabdcef2cd96157b4061be4f129d0377f44043] | committer: Rafaël Carré

avcodec-hw: fix crash on some CPUs

pshufb is available with SSSE3, not with SSE3

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=50fabdcef2cd96157b4061be4f129d0377f44043
---

 modules/codec/avcodec/copy.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/copy.c b/modules/codec/avcodec/copy.c
index 2828923..728abfe 100644
--- a/modules/codec/avcodec/copy.c
+++ b/modules/codec/avcodec/copy.c
@@ -190,7 +190,7 @@ static void SplitUV(uint8_t *dstu, size_t dstu_pitch,
     "movhpd %%xmm3,  24(%[dst2])\n"
 
 #ifdef CAN_COMPILE_SSSE3
-        if (vlc_CPU_SSE3())
+        if (vlc_CPU_SSSE3())
         {
             for (x = 0; x < (width & ~31); x += 32) {
                 asm volatile (



More information about the vlc-commits mailing list