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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 07b9158994 avfilter/avf_showcwt: drop redundant outer av_clip
07b9158994 is described below

commit 07b9158994cce1085a8c5ceb29107a0eb8e1234c
Author:     Zhao Zhili <[email protected]>
AuthorDate: Tue Jun 16 18:35:45 2026 +0800
Commit:     Zhao Zhili <[email protected]>
CommitDate: Mon Jun 22 11:43:51 2026 +0000

    avfilter/avf_showcwt: drop redundant outer av_clip
    
    av_clipd() already bounds the result to [1, 65536]. The surrounding
    av_clip() can never alter it.
---
 libavfilter/avf_showcwt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index 4187aa3bb6..dbb3c8386b 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -882,7 +882,7 @@ static int config_output(AVFilterLink *outlink)
                  frequency_band(s->frequency_band,
                                 s->frequency_band_count, maximum_frequency - 
minimum_frequency,
                                 minimum_frequency, s->frequency_scale, 
s->deviation);
-    s->nb_consumed_samples = av_clip(av_clipd(nb_samples, 1, 65536), 1, 65536);
+    s->nb_consumed_samples = av_clipd(nb_samples, 1, 65536);
 
     s->nb_threads = FFMIN(s->frequency_band_count, 
ff_filter_get_nb_threads(ctx));
     s->nb_channels = inlink->ch_layout.nb_channels;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to