mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avfilter/af_silenceremove: speed-up start-only trimming once trim is over
This commit is contained in:
parent
f59d9514da
commit
29710dd7f2
@ -372,6 +372,12 @@ static int activate(AVFilterContext *ctx)
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
if (ret > 0) {
|
||||
if (s->start_periods == 1 && s->stop_periods == 0 &&
|
||||
s->start_found_periods < 0) {
|
||||
in->pts = s->next_pts;
|
||||
s->next_pts += in->nb_samples;
|
||||
return ff_filter_frame(outlink, in);
|
||||
}
|
||||
if (s->start_periods == 0 && s->stop_periods == 0)
|
||||
return ff_filter_frame(outlink, in);
|
||||
return filter_frame(outlink, in);
|
||||
|
Loading…
Reference in New Issue
Block a user