]> git.sesse.net Git - x264/commitdiff
aarch64: fix x264_mbtree_propagate_cost_neon
authorJanne Grunau <janne-x264@jannau.net>
Wed, 2 Sep 2015 22:21:58 +0000 (00:21 +0200)
committerHenrik Gramner <henrik@gramner.com>
Thu, 3 Sep 2015 14:29:15 +0000 (16:29 +0200)
The branch conditon caused the loop to execute one time more than
intended. Detected by a memory corruption on arm with the 1 to 1 port of
the function.

common/aarch64/mc-a.S

index b6b588eed95bb44e8549ab01a0d2a5cf5e20b472..67a1a7ea425c3d307bc5ae5cfc3b86416f8b3c77 100644 (file)
@@ -1556,7 +1556,7 @@ function x264_mbtree_propagate_cost_neon, export=1
     sqxtn       v0.4h,  v20.4s
     sqxtn2      v0.8h,  v21.4s
     st1         {v0.8h},  [x0], #16
-    b.ge        8b
+    b.gt        8b
     ret
 endfunc