avfilter/af_acrusher: add timeline support

This commit is contained in:
Paul B Mahol 2022-02-27 16:52:48 +01:00
parent 8bcb7d49f9
commit b15c26a22c

View File

@ -248,7 +248,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
double sample = src[c] * level_in;
sample = mix * samplereduction(s, &s->sr[c], sample) + src[c] * (1. - mix) * level_in;
dst[c] = bitreduction(s, sample) * level_out;
dst[c] = ctx->is_disabled ? src[c] : bitreduction(s, sample) * level_out;
}
src += c;
dst += c;
@ -342,4 +342,5 @@ const AVFilter ff_af_acrusher = {
FILTER_OUTPUTS(avfilter_af_acrusher_outputs),
FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBL),
.process_command = process_command,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
};