Commit 0dff278e authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_silenceremove: do not trim non-silence from start

parent 104804a7
......@@ -481,10 +481,12 @@ static int config_input(AVFilterLink *inlink)
s->stop_holdoff_end = 0;
s->stop_found_periods = 0;
if (s->start_periods)
if (s->start_periods) {
s->mode = SILENCE_TRIM;
else
s->one_period = 1;
} else {
s->mode = SILENCE_COPY;
}
switch (inlink->format) {
case AV_SAMPLE_FMT_DBL:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment