[FFmpeg-devel] [PATCH 1/2] avfilter: pass link YUV colorspace to ff_draw_init2

Niklas Haas ffmpeg at haasn.xyz
Mon Feb 5 14:38:42 EET 2024


On Wed, 31 Jan 2024 12:47:59 +0100 "Diederick C. Niehorster" <dcnieho at gmail.com> wrote:
> 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?

Yes, fixed.

Will merge in 24h without further feedback.


More information about the ffmpeg-devel mailing list