MT#55283 fix silence detection typo/bug

Closes #2116

Change-Id: I186d251d2ab58293b9bd6e02023d737aef48727d
(cherry picked from commit db05dfe6e9)
(cherry picked from commit 6649f639ac)
mr26.0.1
Richard Fuchs 3 weeks ago
parent c77068910a
commit 0871b9f492

@ -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