[FFmpeg-devel] [PATCH 1/2] avfilter/vf_codecview: fix heap buffer overflow
Zhao Zhili
quinkblack at foxmail.com
Thu Dec 28 23:56:43 EET 2023
From: Zhao Zhili <zhilizhao at tencent.com>
And improve the performance by a little bit.
---
libavfilter/vf_codecview.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavfilter/vf_codecview.c b/libavfilter/vf_codecview.c
index 55d9c8c04f..f65ccbda70 100644
--- a/libavfilter/vf_codecview.c
+++ b/libavfilter/vf_codecview.c
@@ -216,9 +216,6 @@ static void draw_block_rectangle(uint8_t *buf, int sx, int sy, int w, int h, ptr
buf[sx + w - 1] = color;
buf += stride;
}
-
- for (int x = sx; x < sx + w; x++)
- buf[x] = color;
}
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
--
2.25.1
More information about the ffmpeg-devel
mailing list