From 24ff07bba3470295902d257a093663bc8a46a23f 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) (cherry picked from commit 7c7f51ffba1100412940be421d3f8574ecba9a84) --- daemon/codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/codec.c b/daemon/codec.c index b1bf80d7c..6acf85d61 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -3636,7 +3636,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 */ \