This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 5d4c1bf1b520996d791afebec7e996f4d0d416a7 Author: Niklas Haas <[email protected]> AuthorDate: Fri Sep 18 14:01:21 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Fri Oct 2 12:35:06 2026 +0000 avfilter/vf_limiter: drop unneeded init() This is redundant with the check in config_input(), and in particular, rejects an arguably valid configuration that applies an invalid limit to zero selected planes. Signed-off-by: Niklas Haas <[email protected]> --- libavfilter/vf_limiter.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libavfilter/vf_limiter.c b/libavfilter/vf_limiter.c index 19dbcfd30e..baca904414 100644 --- a/libavfilter/vf_limiter.c +++ b/libavfilter/vf_limiter.c @@ -62,15 +62,6 @@ static const AVOption limiter_options[] = { AVFILTER_DEFINE_CLASS(limiter); -static av_cold int init(AVFilterContext *ctx) -{ - LimiterContext *s = ctx->priv; - - if (s->min >= 0 && s->max >= 0 && s->min > s->max) - return AVERROR(EINVAL); - return 0; -} - static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, @@ -283,7 +274,6 @@ const FFFilter ff_vf_limiter = { .p.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, .priv_size = sizeof(LimiterContext), - .init = init, FILTER_INPUTS(inputs), FILTER_OUTPUTS(ff_video_default_filterpad), FILTER_PIXFMTS_ARRAY(pix_fmts), -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
