History

avfilter/vf_codecview: fix heap buffer overflow

And improve the performance by a little bit.

Zhao Zhili committed 2 years ago

Commit 99debe51 parent 797f0b21 file · +0 −3Browse files

Unified · Split

libavfilter/vf_codecview.c+0−3
@@ -216,9 +216,6 @@ static void draw_block_rectangle(uint8_t *buf, int sx, int sy, int w, int h, ptr · 215 unmodified lines
216216 buf[sx + w - 1] = color;
217217 buf += stride;
218218 }
219−
220− for (int x = sx; x < sx + w; x++)
221− buf[x] = color;
222219 }
223220
224221 static int filter_frame(AVFilterLink *inlink, AVFrame *frame)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t