[FFmpeg-devel] [PATCH 2/4] avfilter/drawutils: Fix depthb computation

Michael Niedermayer michael at niedermayer.cc
Wed Jun 12 00:59:04 EEST 2024


Fixes: CID1496940 Logically dead code

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavfilter/drawutils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c
index 1081938d867..95525d38b40 100644
--- a/libavfilter/drawutils.c
+++ b/libavfilter/drawutils.c
@@ -61,6 +61,7 @@ int ff_fill_rgba_map(uint8_t *rgba_map, enum AVPixelFormat pix_fmt)
 
             had0 |= pos == 0;
             rgba_map[i] = pos;
+            depthb = db;
         }
 
         if (desc->nb_components == 3)
-- 
2.45.2



More information about the ffmpeg-devel mailing list