aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-06-18 02:03:26 +0200
committerPaul B Mahol <onemda@gmail.com>2023-06-18 02:21:29 +0200
commit238ec0c31bea6da9a9124edb1d7beb68d54f9d9b (patch)
treeec69b7d6f9ca961069648ca7f5413af4c6f28c77
parentc44fe101603dbe1e788079f4a798eeca13dbedcd (diff)
downloadffmpeg-238ec0c31bea6da9a9124edb1d7beb68d54f9d9b.tar.gz
avfilter/af_drmeter: fix error in picking 2nd peak
-rw-r--r--libavfilter/af_drmeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_drmeter.c b/libavfilter/af_drmeter.c
index 3e80691339..67eafc23f7 100644
--- a/libavfilter/af_drmeter.c
+++ b/libavfilter/af_drmeter.c
@@ -148,7 +148,7 @@ static void print_stats(AVFilterContext *ctx)
for (i = 0; i <= BINS; i++) {
if (p->peaks[BINS - i]) {
- if (first)
+ if (first || p->peaks[BINS - i] > 1)
break;
first = 1;
}