mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
The vector loop writes all luma samples, but only width / 2 chroma samples. For odd widths, the last U and V samples are left untouched, unlike the C implementations which use AV_CEIL_RSHIFT(width, 1). Write the remaining U/V samples in a scalar tail for both packed formats. Keep the existing vector loop and row stride adjustments. Fixes the uyvytoyuv422_rvv_i32 and yuyvtoyuv422_rvv_i32 failures in checkasm-sw_rgb. Signed-off-by: Hongyan Wang <wanghongyan2025@iscas.ac.cn> Co-authored-by: YuanSheng <yuansheng@iscas.ac.cn> Co-authored-by: Fei Zhang <zhangfei@iscas.ac.cn>