You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/af_silenceremove: speed-up start-only trimming once trim is over
This commit is contained in:
@@ -372,6 +372,12 @@ static int activate(AVFilterContext *ctx)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
if (ret > 0) {
|
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)
|
if (s->start_periods == 0 && s->stop_periods == 0)
|
||||||
return ff_filter_frame(outlink, in);
|
return ff_filter_frame(outlink, in);
|
||||||
return filter_frame(outlink, in);
|
return filter_frame(outlink, in);
|
||||||
|
Reference in New Issue
Block a user