This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 1f9ba3fb6b196e8a4c955bcaada2f9feb492b66b
Author:     Niklas Haas <[email protected]>
AuthorDate: Wed Sep 2 13:26:41 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Wed Sep 16 11:17:01 2026 +0000

    avfilter/vf_limiter: detect and skip no-op planes
    
    A plane that was requested to be limited, but where the bounds already
    agree with the represesentable signal range, can just be treated as a noop.
    
    Sponsored-by: nxtedition AB
    Signed-off-by: Niklas Haas <[email protected]>
---
 libavfilter/vf_limiter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_limiter.c b/libavfilter/vf_limiter.c
index c5d671efa7..197688225e 100644
--- a/libavfilter/vf_limiter.c
+++ b/libavfilter/vf_limiter.c
@@ -178,7 +178,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, 
int jobnr, int nb_jobs)
         if (max < 0)
             max = (is_mpeg && p != 3) ? mpeg_max : full_range;
 
-        if (!((1 << p) & s->planes)) {
+        if (!((1 << p) & s->planes) || (min == 0 && max == full_range)) {
             if (out != in)
                 av_image_copy_plane(out->data[p] + slice_start * 
out->linesize[p],
                                     out->linesize[p],

-- 
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]

Reply via email to