diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-29 12:41:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-03 09:57:25 +0100 |
| commit | 3e00fd464bcd7e20fd2aa66508c249b42196da0f (patch) | |
| tree | faf4e0b270d76494979437527ad0a393cbc9904b /test/image_test.cc | |
| parent | 150ee308a8a802df6e65a957bb256e891d12835e (diff) | |
Fix flipped red and blue with rgba64_onto_* tests.
Diffstat (limited to 'test/image_test.cc')
| -rw-r--r-- | test/image_test.cc | 4 |
1 files 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<uint16_t*>(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<uint16_t*>(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; } } |
