From 3e00fd464bcd7e20fd2aa66508c249b42196da0f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 29 Jan 2024 12:41:29 +0100 Subject: [PATCH] Fix flipped red and blue with rgba64_onto_* tests. --- test/image_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/image_test.cc b/test/image_test.cc index 899961f50..4f4520a51 100644 --- a/test/image_test.cc +++ b/test/image_test.cc @@ -203,7 +203,7 @@ alpha_blend_test_rgba64be_onto(AVPixelFormat format, string suffix) for (int y = 0; y < 128; ++y) { auto p = reinterpret_cast(overlay->data()[0] + y * overlay->stride()[0]); for (int x = 0; x < 128; ++x) { - p[x * 4 + 2] = 65535; + p[x * 4 + 0] = 65535; p[x * 4 + 3] = 65535; } } @@ -219,7 +219,7 @@ alpha_blend_test_rgba64be_onto(AVPixelFormat format, string suffix) for (int y = 256; y < 384; ++y) { auto p = reinterpret_cast(overlay->data()[0] + y * overlay->stride()[0]); for (int x = 0; x < 128; ++x) { - p[x * 4] = 65535; + p[x * 4 + 2] = 65535; p[x * 4 + 3] = 65535; } } -- 2.30.2