forked from FFmpeg/FFmpeg
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:
parent
b72de49295
commit
9ffa127aa6
1 changed files with 2 additions and 2 deletions
|
@ -266,10 +266,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||||
}
|
}
|
||||||
/* input and output transfer will be linear */
|
/* input and output transfer will be linear */
|
||||||
if (in->color_trc == AVCOL_TRC_UNSPECIFIED) {
|
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;
|
out->color_trc = AVCOL_TRC_LINEAR;
|
||||||
} else if (in->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;
|
td.in = in;
|
||||||
|
|
Loading…
Add table
Reference in a new issue