ffmpeg | branch: release/7.1 | Michael Niedermayer <mich...@niedermayer.cc> | 
Mon Jan  6 05:06:10 2025 +0100| [601616f2de4274fd6da6ed9a80843d6c56e65131] | 
committer: Michael Niedermayer

avfilter/vf_grayworld: Use the correct pointer for av_log()

Fixes: crash

Found-by: Elias Myllymäki <elias.myllymaki...@gmail.com>
Reviewed-by: Alexander Strasser <eclip...@gmx.net>
Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>
(cherry picked from commit 9ffa127aa6853790acb40004fbab97f13ff4c72e)
Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=601616f2de4274fd6da6ed9a80843d6c56e65131
---

 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 a6a51dcb7d..91b097a4b8 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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to