mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-26 17:23:19 +00:00
avfilter/vf_codecview: fix heap buffer overflow
And improve the performance by a little bit. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
797f0b27c1
commit
99debe5f82
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user