From 8d64b00a8e80a8acb613eeed299aa60314e8d69a Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 4 Jun 2026 09:30:46 -0400 Subject: [PATCH] MT#55283 fix silence detection typo/bug Closes #2116 Change-Id: I186d251d2ab58293b9bd6e02023d737aef48727d (cherry picked from commit db05dfe6e991761eae66850f3e76aedf0c7e4374) --- daemon/codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/codec.c b/daemon/codec.c index 7ed5b1f98..d4aa43da1 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -4236,7 +4236,7 @@ static void __silence_detect_ ## type(struct codec_ssrc_handler *ch, AVFrame *fr last = NULL; \ \ for (unsigned int i = 0; i < frame->nb_samples; i++) { \ - if (s[i] <= thres && s[1] >= -thres) { \ + if (s[i] <= thres && s[i] >= -thres) { \ /* silence */ \ if (!last) { \ /* new event */ \