diff options
author | Niklas Haas <git@haasn.dev> | 2025-08-11 15:43:22 +0200 |
---|---|---|
committer | Niklas Haas <ffmpeg@haasn.dev> | 2025-08-12 09:01:39 +0000 |
commit | d84a21a0235bbdea07dc91021cd83f856cac5cd2 (patch) | |
tree | 25757cce52782e7f6f11a1316586c68a82ec0997 | |
parent | 8c51a8b9544fa70c97bbfca8c6c9629ad5ec8286 (diff) | |
download | ffmpeg-d84a21a0235bbdea07dc91021cd83f856cac5cd2.tar.gz |
avfilter/vf_curves: use AVFilterContext for logging
-rw-r--r-- | libavfilter/vf_curves.c | 6 |
1 files 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; } |