aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2024-06-07 21:44:51 +0800
committerZhao Zhili <zhilizhao@tencent.com>2024-06-11 01:11:46 +0800
commitb1240c983f96271990c4262978a08edc8eb4df1f (patch)
treed53900ae005629db5af27aa8be6df85cf91c080d
parent33e4cc963d5e2a189e4e52eaa38e9a8e31dad35a (diff)
downloadffmpeg-b1240c983f96271990c4262978a08edc8eb4df1f.tar.gz
tests/checkasm: Fix build error when enable linux perf on Android
B0 is defined by system header, see f0f596dbc6b for ref. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r--tests/checkasm/llviddsp.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/checkasm/llviddsp.c b/tests/checkasm/llviddsp.c
index b75c0ea099..9f8de65df4 100644
--- a/tests/checkasm/llviddsp.c
+++ b/tests/checkasm/llviddsp.c
@@ -71,7 +71,7 @@ static void check_add_bytes(LLVidDSPContext *c, int width)
}
static void check_add_median_pred(LLVidDSPContext *c, int width) {
- int A0, A1, B0, B1;
+ int a0, a1, b0, b1;
uint8_t *dst0 = av_mallocz(width);
uint8_t *dst1 = av_mallocz(width);
uint8_t *src0 = av_calloc(width, sizeof(*src0));
@@ -85,18 +85,18 @@ static void check_add_median_pred(LLVidDSPContext *c, int width) {
init_buffer(src0, src1, uint8_t, width);
init_buffer(diff0, diff1, uint8_t, width);
- A0 = rnd() & 0xFF;
- B0 = rnd() & 0xFF;
- A1 = A0;
- B1 = B0;
+ a0 = rnd() & 0xFF;
+ b0 = rnd() & 0xFF;
+ a1 = a0;
+ b1 = b0;
if (check_func(c->add_median_pred, "add_median_pred")) {
- call_ref(dst0, src0, diff0, width, &A0, &B0);
- call_new(dst1, src1, diff1, width, &A1, &B1);
- if (memcmp(dst0, dst1, width) || (A0 != A1) || (B0 != B1))
+ call_ref(dst0, src0, diff0, width, &a0, &b0);
+ call_new(dst1, src1, diff1, width, &a1, &b1);
+ if (memcmp(dst0, dst1, width) || (a0 != a1) || (b0 != b1))
fail();
- bench_new(dst1, src1, diff1, width, &A1, &B1);
+ bench_new(dst1, src1, diff1, width, &a1, &b1);
}
av_free(src0);