aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-12-03 12:38:51 +0100
committerPaul B Mahol <onemda@gmail.com>2022-12-03 12:47:02 +0100
commite69909342e068814c27e7c9a97a5de838c5f5f92 (patch)
tree05e503a8f6625eb17d337417dc020fb14098c29f
parentfe196fd29a6769e456b31aa43983e64e5b7c60d6 (diff)
downloadffmpeg-e69909342e068814c27e7c9a97a5de838c5f5f92.tar.gz
avfilter/avf_showcwt: fix logic mistake
-rw-r--r--libavfilter/avf_showcwt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index b5a4ed0554..315b8289a6 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -363,7 +363,7 @@ static int draw(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
switch (mode) {
case 4:
{
- const AVComplexFloat *src2 = ((const AVComplexFloat *)s->ch_out->extended_data[FFMAX(1, s->nb_channels - 1)]) +
+ const AVComplexFloat *src2 = ((const AVComplexFloat *)s->ch_out->extended_data[FFMIN(1, s->nb_channels - 1)]) +
y * ihop_size + ihop_index;
float z, u, v;