You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user