aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm/motion.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-07-12 23:44:42 +0300
committerMartin Storsjö <martin@martin.st>2022-07-16 17:25:35 +0300
commit237730f0e0422fd46ffaf7e724a68eb1e6459645 (patch)
tree0839b45aabf139f2d1f163f23c8e2b59dcd31741 /tests/checkasm/motion.c
parent02e7853fd94aa78a5f0990ee0105a291172a5eab (diff)
downloadffmpeg-237730f0e0422fd46ffaf7e724a68eb1e6459645.tar.gz
checkasm: motion: Make the benchmarks more stable
Don't use the last random offset, but a static one. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tests/checkasm/motion.c')
-rw-r--r--tests/checkasm/motion.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/checkasm/motion.c b/tests/checkasm/motion.c
index 0112822174..631a9ed29f 100644
--- a/tests/checkasm/motion.c
+++ b/tests/checkasm/motion.c
@@ -79,7 +79,8 @@ static void test_motion(const char *name, me_cmp_func test_func)
break;
}
}
- // benchmark with the final value of ptr
+ // Test with a fixed offset, for benchmark stability
+ ptr = img2 + 3 * WIDTH + 3;
bench_new(NULL, img1, ptr, WIDTH, 8);
}
}