You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-06 05:47:18 +02:00
tests/checkasm/llviddsp: Use the same width for each cpuflag
Otherwise the benchmark numbers would be incomparable nonsense. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
committed by
James Almer
parent
df4587789f
commit
a8a16c15c8
@@ -195,9 +195,13 @@ static void check_add_gradient_pred(LLVidDSPContext *c, int w) {
|
||||
void checkasm_check_llviddsp(void)
|
||||
{
|
||||
LLVidDSPContext c;
|
||||
int width = 16 * av_clip(rnd(), 16, 128);
|
||||
static int saved_width = 0;
|
||||
int width = saved_width;
|
||||
int accRnd = rnd() & 0xFF;
|
||||
|
||||
if (!width)
|
||||
saved_width = width = 16 * av_clip(rnd(), 16, 128);
|
||||
|
||||
ff_llviddsp_init(&c);
|
||||
|
||||
check_add_bytes(&c, width);
|
||||
|
Reference in New Issue
Block a user