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 */ \