From 49054fe94c2f36881f63d15eca6e4bfb7f71b8ce Mon Sep 17 00:00:00 2001 From: Limin Wang Date: Wed, 1 Jul 2020 20:57:58 +0800 Subject: FATE: fix colorbalance fate test failed on x86_32 floating point precision will cause rgb*max generate different value on x86_32 and x86_64. have pass fate test on x86_32 and x86_64 by using lrintf to get the nearest integral value for rgb * max before av_clip. Reviewed-by: Paul B Mahol Signed-off-by: Limin Wang --- tests/ref/fate/filter-colorbalance | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/ref/fate/filter-colorbalance') diff --git a/tests/ref/fate/filter-colorbalance b/tests/ref/fate/filter-colorbalance index f267da572e..15491fe671 100644 --- a/tests/ref/fate/filter-colorbalance +++ b/tests/ref/fate/filter-colorbalance @@ -3,6 +3,6 @@ #codec_id 0: rawvideo #dimensions 0: 352x288 #sar 0: 0/1 -0, 0, 0, 1, 304128, 0xd50c9fea -0, 1, 1, 1, 304128, 0xdf9e1f79 -0, 2, 2, 1, 304128, 0x9b84087e +0, 0, 0, 1, 304128, 0xf68fadfd +0, 1, 1, 1, 304128, 0xa6302d9a +0, 2, 2, 1, 304128, 0x758d165a -- cgit v1.2.3