1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

avfilter/af_drmeter: fix error in picking 2nd peak

This commit is contained in:
Paul B Mahol 2023-06-18 02:03:26 +02:00
parent c44fe10160
commit 238ec0c31b

View File

@ -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;
}