[FFmpeg-cvslog] tests/checkasm/sw_rgb: remove bogus value truncation in check_yuv2packed1()

James Almer git at videolan.org
Tue Dec 31 16:53:37 EET 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Dec 31 11:53:18 2024 -0300| [658a645e183e16dbb2a26aba2fe22865e856a791] | committer: James Almer

tests/checkasm/sw_rgb: remove bogus value truncation in check_yuv2packed1()

Fixes out of array accesses.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=658a645e183e16dbb2a26aba2fe22865e856a791
---

 tests/checkasm/sw_rgb.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/checkasm/sw_rgb.c b/tests/checkasm/sw_rgb.c
index ac9a52192a..1db049ff26 100644
--- a/tests/checkasm/sw_rgb.c
+++ b/tests/checkasm/sw_rgb.c
@@ -571,8 +571,6 @@ static void check_yuv2packed1(void)
         src_a[i] &= 0x3FFF3FFF;
         src_u[i] &= 0x3FFF3FFF;
         src_v[i] &= 0x3FFF3FFF;
-        src_u[i + INPUT_SIZE] &= 0x3FFF3FFF;
-        src_v[i + INPUT_SIZE] &= 0x3FFF3FFF;
     }
 
     luma  = (int16_t *)src_y;



More information about the ffmpeg-cvslog mailing list