[FFmpeg-devel] [RFC PATCH] tests/color_utils: Reduce precision requirement to resolve test failure
Zhao Zhili
quinkblack at foxmail.com
Sat Dec 7 16:49:50 EET 2024
Why 5215ec677c5510dcffc5c91003be145315df82fa isn’t on the mailing list?
I send the patch and cc to Haas at the first place.
> On Dec 6, 2024, at 11:23, Zhao Zhili <quinkblack-at-foxmail.com at ffmpeg.org> wrote:
>
> From: Zhao Zhili <zhilizhao at tencent.com>
>
> ---
> libavutil/tests/color_utils.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavutil/tests/color_utils.c b/libavutil/tests/color_utils.c
> index 27ba8b529e..b8200e91fa 100644
> --- a/libavutil/tests/color_utils.c
> +++ b/libavutil/tests/color_utils.c
> @@ -70,7 +70,7 @@ int main(int argc, char *argv[])
> printf("trc=%s calling func(%f) expected=%f roundtrip=%f\n",
> name, test_data[i], result, roundtrip);
>
> - if (result > 0.0 && fabs(roundtrip - test_data[i]) > 1e-8) {
> + if (result > 0.0 && fabs(roundtrip - test_data[i]) > 1e-7) {
> printf(" FAIL\n");
> return 1;
> }
> --
> 2.46.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list