Skip to content

Commit 0871b9f

Browse files
committed
MT#55283 fix silence detection typo/bug
Closes #2116 Change-Id: I186d251d2ab58293b9bd6e02023d737aef48727d (cherry picked from commit db05dfe) (cherry picked from commit 6649f63)
1 parent c770689 commit 0871b9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

daemon/codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4256,7 +4256,7 @@ static void __silence_detect_ ## type(struct codec_ssrc_handler *ch, AVFrame *fr
42564256
last = NULL; \
42574257
\
42584258
for (unsigned int i = 0; i < frame->nb_samples; i++) { \
4259-
if (s[i] <= thres && s[1] >= -thres) { \
4259+
if (s[i] <= thres && s[i] >= -thres) { \
42604260
/* silence */ \
42614261
if (!last) { \
42624262
/* new event */ \

0 commit comments

Comments
 (0)