From 13d621cc7cd24ff1811b240aa81860c65366dcce Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 8 Apr 2026 09:20:25 +0200 Subject: [PATCH] avcodec/snow: Disable dead code in ff_snow_inner_add_yblock() It is only used with add != 0 (and the assembly functions only support this case). Signed-off-by: Andreas Rheinhardt --- libavcodec/snow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/snow.c b/libavcodec/snow.c index fa191c08c0..b6aa94e1ce 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -20,6 +20,7 @@ #include +#include "libavutil/avassert.h" #include "libavutil/log.h" #include "libavutil/mem.h" #include "libavutil/thread.h" @@ -118,6 +119,9 @@ void ff_snow_inner_add_yblock(const uint8_t *obmc, const int obmc_stride, uint8_ int src_x, int src_y, int src_stride, slice_buffer * sb, int add, uint8_t * dst8){ int y, x; IDWTELEM * dst; + + av_assume(add); // add == 0 is currently unused + for(y=0; y