History

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

Fixes: crash

Michael Niedermayer committed 1 year ago

Commit 9ffa1271 parent b72de491 file · +2 −2Browse files

Unified · Split

libavfilter/vf_grayworld.c+2−2
@@ -266,10 +266,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 265 unmodified lines
266 }266 }
267 /* input and output transfer will be linear */267 /* input and output transfer will be linear */
268 if (in->color_trc == AVCOL_TRC_UNSPECIFIED) {268 if (in->color_trc == AVCOL_TRC_UNSPECIFIED) {
269 av_log(s, AV_LOG_WARNING, "Untagged transfer, assuming linear light.\n");269 av_log(ctx, AV_LOG_WARNING, "Untagged transfer, assuming linear light.\n");
270 out->color_trc = AVCOL_TRC_LINEAR;270 out->color_trc = AVCOL_TRC_LINEAR;
271 } else if (in->color_trc != AVCOL_TRC_LINEAR) {271 } else if (in->color_trc != AVCOL_TRC_LINEAR) {
272 av_log(s, AV_LOG_WARNING, "Gray world color correction works on linear light only.\n");272 av_log(ctx, AV_LOG_WARNING, "Gray world color correction works on linear light only.\n");
273 }273 }
274 274
275 td.in = in;275 td.in = in;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t