]> git.videolan.org Git - x264.git/commitdiff
Fix invalid memory accesses in x86 lowres_init when width <= 16
authorAnton Mitrofanov <BugMaster@narod.ru>
Sat, 20 Aug 2011 22:44:45 +0000 (02:44 +0400)
committerJason Garrett-Glaser <jason@x264.com>
Wed, 24 Aug 2011 17:23:09 +0000 (10:23 -0700)
common/x86/mc-a2.asm

index c3c8061af0c170b3b547078bffdfc723d9027dfc..00fc73974ee537353fabe40f833d71a3efc8e95e 100644 (file)
@@ -1578,6 +1578,7 @@ cglobal frame_init_lowres_core, 6,7,(12-4*(BIT_DEPTH/9)) ; 8 for HIGH_BIT_DEPTH,
     mova      m0, m2
     mova      m1, m3
     sub      r6d, 8
+    jz .skip
 %endif ; mmsize
 .hloop:
     sub       r0, mmsize*2