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

Showing the changes to libavfilter (1 of 1 file). Show all

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
216 buf[sx + w - 1] = color;216 buf[sx + w - 1] = color;
217 buf += stride;217 buf += stride;
218 }218 }
219
220 for (int x = sx; x < sx + w; x++)
221 buf[x] = color;
222}219}
223 220
224static int filter_frame(AVFilterLink *inlink, AVFrame *frame)221static 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