PR #23349 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23349 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23349.patch
Found-by: Claude (Anthropic), human-verified and reported by Omkhar Arasaratnam <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> >From 27914c8474e468ec0561c7612c84d3ea33f9a66e Mon Sep 17 00:00:00 2001 From: Omkhar Arasaratnam <[email protected]> Date: Thu, 4 Jun 2026 23:48:34 +0200 Subject: [PATCH] swscale/x86/rgb_2_rgb: round UYVY -> YUV422P width down to a pair to avoid overrun Found-by: Claude (Anthropic), human-verified and reported by Omkhar Arasaratnam <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> --- libswscale/x86/rgb_2_rgb.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libswscale/x86/rgb_2_rgb.asm b/libswscale/x86/rgb_2_rgb.asm index 871bb21127..8c49076d24 100644 --- a/libswscale/x86/rgb_2_rgb.asm +++ b/libswscale/x86/rgb_2_rgb.asm @@ -192,6 +192,8 @@ cglobal uyvytoyuv422, 9, 14, 8 + cpuflag(avx2) + cpuflag(avx512icl), ydst, udst, movsxdifnidn chrom_strideq, chrom_strided movsxdifnidn src_strideq, src_strided + and wq, -2 + mov back_wq, wq mov whalfq, wq shr whalfq, 1 ; whalf = width / 2 -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
