diff options
author | Niklas Haas <git@haasn.dev> | 2025-08-11 15:57:24 +0200 |
---|---|---|
committer | Niklas Haas <ffmpeg@haasn.dev> | 2025-08-12 09:01:39 +0000 |
commit | 5929d46f7bd8a19b40dbb266161a2146beed3afb (patch) | |
tree | 84eb8a6e1e86a1e74e33a82f619cf70d276c716c | |
parent | ec3c9ecaa7f53e354595786421d7c56be68ea465 (diff) | |
download | ffmpeg-5929d46f7bd8a19b40dbb266161a2146beed3afb.tar.gz |
avfilter/vf_vignette: use AVFilterContext for logging
-rw-r--r-- | libavfilter/vf_vignette.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/vf_vignette.c b/libavfilter/vf_vignette.c index 972ef7879d..da4c307964 100644 --- a/libavfilter/vf_vignette.c +++ b/libavfilter/vf_vignette.c @@ -283,7 +283,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) static int config_props(AVFilterLink *inlink) { - VignetteContext *s = inlink->dst->priv; + AVFilterContext * ctx = inlink->dst; + VignetteContext *s = ctx->priv; FilterLink *l = ff_filter_link(inlink); AVRational sar = inlink->sample_aspect_ratio; @@ -304,7 +305,7 @@ static int config_props(AVFilterLink *inlink) s->xscale = 1; } s->dmax = hypot(inlink->w / 2., inlink->h / 2.); - av_log(s, AV_LOG_DEBUG, "xscale=%f yscale=%f dmax=%f\n", + av_log(ctx, AV_LOG_DEBUG, "xscale=%f yscale=%f dmax=%f\n", s->xscale, s->yscale, s->dmax); s->fmap_linesize = FFALIGN(inlink->w, 32); |