MT#55283 fix silence detection typo/bug

Closes #2116

Change-Id: I186d251d2ab58293b9bd6e02023d737aef48727d
(cherry picked from commit db05dfe6e9)
mr26.0
Richard Fuchs 3 weeks ago
parent 1f0fa86d72
commit 6649f639ac

@ -4256,7 +4256,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