avfilter/x86/vf_maskedmerge: Clear upper part of width
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Dec 2015 20:57:31 +0000 (21:57 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Dec 2015 21:38:15 +0000 (22:38 +0100)
Fixes crash
Fixes: Ticket5055

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/x86/vf_maskedmerge.asm

index e548d25..1970b0c 100644 (file)
@@ -35,6 +35,7 @@ cglobal maskedmerge8, 10, 11, 7, 0, bsrc, osrc, msrc, dst, blinesize, olinesize,
     mova        m4, [pw_256]
     mova        m5, [pw_128]
     pxor        m6, m6
+    movsxdifnidn wq, wd
     add      bsrcq, wq
     add      osrcq, wq
     add      msrcq, wq