History

avfilter/af_acrusher: add timeline support

Paul B Mahol committed 4 years ago

Commit b15c26a1 parent 8bcb7d41 file · +2 −1Browse files

Unified · Split

libavfilter/af_acrusher.c+2−1
@@ -248,7 +248,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 247 unmodified lines
248248 double sample = src[c] * level_in;
249249
250250 sample = mix * samplereduction(s, &s->sr[c], sample) + src[c] * (1. - mix) * level_in;
251− dst[c] = bitreduction(s, sample) * level_out;
251+ dst[c] = ctx->is_disabled ? src[c] : bitreduction(s, sample) * level_out;
252252 }
253253 src += c;
254254 dst += c;
@@ -342,4 +342,5 @@ const AVFilter ff_af_acrusher = { · 87 unmodified lines
342342 FILTER_OUTPUTS(avfilter_af_acrusher_outputs),
343343 FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBL),
344344 .process_command = process_command,
345+ .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
345346 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t