ff_draw_rectangle handles subsampling since 2013. Fixes ticket #10989.
Unified · Split
| @@ -260,8 +260,6 @@ static int color_config_props(AVFilterLink *inlink) · 259 unmodified lines | |||
| 260 | inlink->color_range, 0); | 260 | inlink->color_range, 0); |
| 261 | ff_draw_color(&test->draw, &test->color, test->color_rgba); | 261 | ff_draw_color(&test->draw, &test->color, test->color_rgba); |
| 262 | 262 | ||
| 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); | ||
| 265 | if (av_image_check_size(test->w, test->h, 0, ctx) < 0) | 263 | if (av_image_check_size(test->w, test->h, 0, ctx) < 0) |
| 266 | return AVERROR(EINVAL); | 264 | return AVERROR(EINVAL); |
| 267 | 265 | ||