History

avfilter/vsrc_testsrc: do not round down width and height for color src

ff_draw_rectangle handles subsampling since 2013. Fixes ticket #10989.

Marton Balint committed 2 years ago

Commit 77fc0471 parent 20fbc071 file · +0 −2Browse files

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

Unified · Split

libavfilter/vsrc_testsrc.c+0−2
@@ -260,8 +260,6 @@ static int color_config_props(AVFilterLink *inlink) · 259 unmodified lines
260260 inlink->color_range, 0);
261261 ff_draw_color(&test->draw, &test->color, test->color_rgba);
262262
263− test->w = ff_draw_round_to_sub(&test->draw, 0, -1, test->w);
264− test->h = ff_draw_round_to_sub(&test->draw, 1, -1, test->h);
265263 if (av_image_check_size(test->w, test->h, 0, ctx) < 0)
266264 return AVERROR(EINVAL);
267265

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