aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2025-01-06 05:06:10 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2025-01-08 23:23:24 +0100
commit9ffa127aa6853790acb40004fbab97f13ff4c72e (patch)
treeb94ef6b5b6dec6296fbe4a1e46922b9455986115
parentb72de492959fb19eab37368232e65a4371c367f7 (diff)
downloadffmpeg-9ffa127aa6853790acb40004fbab97f13ff4c72e.tar.gz
avfilter/vf_grayworld: Use the correct pointer for av_log()
Fixes: crash Found-by: Elias Myllymäki <elias.myllymaki04p@gmail.com> Reviewed-by: Alexander Strasser <eclipse7@gmx.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/vf_grayworld.c4
1 files 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;