aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/silenceremove_template.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-05-28 11:14:24 +0200
committerPaul B Mahol <onemda@gmail.com>2023-05-28 12:23:13 +0200
commitb95d123097f10a6a3e997cf055c2d4a3bcf78b24 (patch)
treecff8b99e2965988aa88f9ad3993d4d31d4cb5a37 /libavfilter/silenceremove_template.c
parente53260c1f4ce478943ad0d1ec1ca29a55024ae8a (diff)
downloadffmpeg-b95d123097f10a6a3e997cf055c2d4a3bcf78b24.tar.gz
avfilter/silenceremove_template: revert wrong change
Diffstat (limited to 'libavfilter/silenceremove_template.c')
-rw-r--r--libavfilter/silenceremove_template.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/silenceremove_template.c b/libavfilter/silenceremove_template.c
index 34d50fcf0e..c1335adb95 100644
--- a/libavfilter/silenceremove_template.c
+++ b/libavfilter/silenceremove_template.c
@@ -467,8 +467,10 @@ static void fn(filter_stop)(AVFilterContext *ctx,
s->stop_found_periods = 0;
if (s->stop_found_periods >= 0 || ctx->is_disabled) {
- if (s->found_nonsilence)
+ if (s->found_nonsilence) {
s->stop_sample_count += stop_thres;
+ s->stop_sample_count *= stop_thres;
+ }
} else if (s->stop_silence_count > 0) {
const int dst_pos = out_nb_samples * nb_channels;
for (int ch = 0; ch < nb_channels; ch++)