diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-06-18 02:03:26 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-06-18 02:21:29 +0200 |
commit | 238ec0c31bea6da9a9124edb1d7beb68d54f9d9b (patch) | |
tree | ec69b7d6f9ca961069648ca7f5413af4c6f28c77 | |
parent | c44fe101603dbe1e788079f4a798eeca13dbedcd (diff) | |
download | ffmpeg-238ec0c31bea6da9a9124edb1d7beb68d54f9d9b.tar.gz |
avfilter/af_drmeter: fix error in picking 2nd peak
-rw-r--r-- | libavfilter/af_drmeter.c | 2 |
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; } |