This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 13d621cc7cd24ff1811b240aa81860c65366dcce
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Wed Apr 8 09:20:25 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Mon Apr 13 12:46:24 2026 +0200

    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 <[email protected]>
---
 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 <assert.h>
 
+#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<b_h; y++){
         //FIXME ugly misuse of obmc_stride
         const uint8_t *obmc1= obmc + y*obmc_stride;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to