From d84a21a0235bbdea07dc91021cd83f856cac5cd2 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Mon, 11 Aug 2025 15:43:22 +0200 Subject: [PATCH] avfilter/vf_curves: use AVFilterContext for logging --- libavfilter/vf_curves.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_curves.c b/libavfilter/vf_curves.c index d54e9ed1b9..d8dfd32858 100644 --- a/libavfilter/vf_curves.c +++ b/libavfilter/vf_curves.c @@ -641,7 +641,7 @@ end: static int dump_curves(const char *fname, uint16_t *graph[NB_COMP + 1], struct keypoint *comp_points[NB_COMP + 1], - int lut_size) + int lut_size, void *log_ctx) { int i; AVBPrint buf; @@ -653,7 +653,7 @@ static int dump_curves(const char *fname, uint16_t *graph[NB_COMP + 1], if (!f) { int ret = AVERROR(errno); - av_log(NULL, AV_LOG_ERROR, "Cannot open file '%s' for writing: %s\n", + av_log(log_ctx, AV_LOG_ERROR, "Cannot open file '%s' for writing: %s\n", fname, av_err2str(ret)); return ret; } @@ -912,7 +912,7 @@ static int config_input(AVFilterLink *inlink) } if (curves->plot_filename && !curves->saved_plot) { - dump_curves(curves->plot_filename, curves->graph, comp_points, curves->lut_size); + dump_curves(curves->plot_filename, curves->graph, comp_points, curves->lut_size, ctx); curves->saved_plot = 1; }