]> git.sesse.net Git - ffmpeg/commit
FATE: fix colorbalance fate test failed on x86_32
authorLimin Wang <lance.lmwang@gmail.com>
Wed, 1 Jul 2020 12:57:58 +0000 (20:57 +0800)
committerLimin Wang <lance.lmwang@gmail.com>
Thu, 2 Jul 2020 13:12:37 +0000 (21:12 +0800)
commit49054fe94c2f36881f63d15eca6e4bfb7f71b8ce
treef49b31de5afe49025ab3ab326732442192b270e1
parentc367d14d0a5d4ce1c007f636ba85681915fd5f79
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 <onemda@gmail.com>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
libavfilter/vf_colorbalance.c
tests/ref/fate/filter-colorbalance
tests/ref/fate/filter-colorbalance-gbrap
tests/ref/fate/filter-colorbalance-gbrap-16
tests/ref/fate/filter-colorbalance-rgba64