MT#55283 fix silence detection typo/bug

Closes #2116

Change-Id: I186d251d2ab58293b9bd6e02023d737aef48727d
pull/2123/head
Richard Fuchs 1 month ago
parent 164c526c8b
commit db05dfe6e9

@ -4275,7 +4275,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 */ \

Loading…
Cancel
Save