checkasm: hevc_sao: Fix a regression in hevc_sao_edge

check_func() might return NULL, in which case the function is not to be
benched. Introduced in cc679054c7.

Signed-off-by: Matthias Dressel <code@deadcode.eu>
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Matthias Dressel 2023-08-24 16:58:33 +02:00 committed by Martin Storsjö
parent 9bc5676e40
commit e41bd6e65e
1 changed files with 1 additions and 1 deletions

View File

@ -134,11 +134,11 @@ static void check_sao_edge(HEVCDSPContext *h, int bit_depth)
if (memcmp(dst0 + j*stride, dst1 + j*stride, w*SIZEOF_PIXEL)) if (memcmp(dst0 + j*stride, dst1 + j*stride, w*SIZEOF_PIXEL))
fail(); fail();
} }
}
bench_new(dst1, src1 + offset, stride, offset_val, eo, block_size, block_size); bench_new(dst1, src1 + offset, stride, offset_val, eo, block_size, block_size);
} }
} }
} }
}
void checkasm_check_hevc_sao(void) void checkasm_check_hevc_sao(void)
{ {