From 9fe9fd95b6e87b8d23505f3e52337547cdfe4460 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 28 Feb 2026 15:37:52 +0100 Subject: [PATCH] avcodec/x86/vvc/of: Only clip for >8bpp packuswb does it already for 8bpp. Signed-off-by: Andreas Rheinhardt --- libavcodec/x86/vvc/of.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/x86/vvc/of.asm b/libavcodec/x86/vvc/of.asm index 5184144739..64c972786c 100644 --- a/libavcodec/x86/vvc/of.asm +++ b/libavcodec/x86/vvc/of.asm @@ -69,7 +69,6 @@ INIT_YMM avx2 paddw %4, [src1q + (%5 + 1) * SRC_STRIDE + SRC_PS] paddsw %1, %4 ; src0[x] + src1[x] + bdof_offset pmulhrsw %1, m11 - CLIPW %1, m9, m10 %endmacro %macro SAVE 2 ; dst, src @@ -85,6 +84,7 @@ INIT_YMM avx2 jmp %%end %%save_16bpc: + CLIPW m%2, m9, m10 cmp wd, 16 jne %%w8_16 movu %1, m%2