summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-15 01:39:56 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-15 08:21:56 +0100
commit6e8f8563f4e4e6ff04b632aff8d6ae95de945649 (patch)
treede34a2653c741c62f104fb1761d7935b82d283e6 /test
parentb4400c1b8c288aefa2cb0f4d2fa47a94b1a79b65 (diff)
Fix artefacts on the edge of YUV images with odd widths (#3119).v2.18.34
This also modifies an existing test to expose the bug.
Diffstat (limited to 'test')
-rw-r--r--test/image_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/image_test.cc b/test/image_test.cc
index 8d19c631e..aa3baeb4f 100644
--- a/test/image_test.cc
+++ b/test/image_test.cc
@@ -217,7 +217,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) {
+ for (int x = 0; x < 431; ++x) {
p[x * 4 + 2] = 65535;
p[x * 4 + 3] = 65535;
}