diff options
| -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; } } |
