[FFmpeg-devel] [PATCH 1/2] avfilter: pass link YUV colorspace to ff_draw_init2
Diederick C. Niehorster
dcnieho at gmail.com
Wed Jan 31 13:47:59 EET 2024
On Wed, Jan 31, 2024 at 12:17 PM Niklas Haas <ffmpeg at haasn.xyz> wrote:
>
> From: Niklas Haas <git at haasn.dev>
>
> diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
> index fe7e6ace27..37110bc32f 100644
> --- a/libavfilter/vf_drawtext.c
> +++ b/libavfilter/vf_drawtext.c
> @@ -1152,7 +1152,7 @@ static int config_input(AVFilterLink *inlink)
> char *expr;
> int ret;
>
> - ff_draw_init(&s->dc, inlink->format, FF_DRAW_PROCESS_ALPHA);
> + ff_draw_init(&s->dc, inlink->format, inlink->colorspace, inlink->color_range, FF_DRAW_PROCESS_ALPHA);
Should this be ff_draw_init2?
> ff_draw_color(&s->dc, &s->fontcolor, s->fontcolor.rgba);
> ff_draw_color(&s->dc, &s->shadowcolor, s->shadowcolor.rgba);
> ff_draw_color(&s->dc, &s->bordercolor, s->bordercolor.rgba);
More information about the ffmpeg-devel
mailing list