[FFmpeg-devel] [PATCH] avfilter/vf_grayworld: Use the correct pointer for av_log()

Michael Niedermayer michael at niedermayer.cc
Tue Jan 7 14:47:24 EET 2025


Hi

On Mon, Jan 06, 2025 at 06:43:15PM +0100, Alexander Strasser via ffmpeg-devel wrote:
> On 2025-01-06 05:22 +0100, Michael Niedermayer wrote:
> > Fixes: crash
> >
> > Found-by: Elias Myllymäki <elias.myllymaki04p at gmail.com>
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  libavfilter/vf_grayworld.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/libavfilter/vf_grayworld.c b/libavfilter/vf_grayworld.c
> > index a6a51dcb7db..91b097a4b80 100644
> > --- a/libavfilter/vf_grayworld.c
> > +++ b/libavfilter/vf_grayworld.c
> > @@ -266,10 +266,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
> >      }
> >      /* input and output transfer will be linear */
> >      if (in->color_trc == AVCOL_TRC_UNSPECIFIED) {
> > -        av_log(s, AV_LOG_WARNING, "Untagged transfer, assuming linear light.\n");
> > +        av_log(ctx, AV_LOG_WARNING, "Untagged transfer, assuming linear light.\n");
> >          out->color_trc = AVCOL_TRC_LINEAR;
> >      } else if (in->color_trc != AVCOL_TRC_LINEAR) {
> > -        av_log(s, AV_LOG_WARNING, "Gray world color correction works on linear light only.\n");
> > +        av_log(ctx, AV_LOG_WARNING, "Gray world color correction works on linear light only.\n");
> >      }
> >
> >      td.in = in;
> > --
> 
> LGTM

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250107/ef68a63d/attachment.sig>


More information about the ffmpeg-devel mailing list