History

avfilter/af_speechnorm: add timeline support

Paul B Mahol committed 5 years ago

Commit 3df55c71 parent 5db1e071 file · +3 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_speechnorm.c+3−2
@@ -315,7 +315,7 @@ static void filter_channels_## name (AVFilterContext *ctx, · 314 unmodified lines
315315 av_assert0(size > 0); \
316316 gain = cc->gain_state; \
317317 consume_pi(cc, size); \
318− for (int i = n; i < n + size; i++) \
318+ for (int i = n; !ctx->is_disabled && i < n + size; i++) \
319319 dst[i] *= gain; \
320320 n += size; \
321321 } \
@@ -375,7 +375,7 @@ static void filter_link_channels_## name (AVFilterContext *ctx, · 53 unmodified lines
375375 if (cc->bypass) \
376376 continue; \
377377 \
378− for (int i = n; i < n + min_size; i++) { \
378+ for (int i = n; !ctx->is_disabled && i < n + min_size; i++) { \
379379 ptype g = tlerp(s->prev_gain, gain, (i - n) / (ptype)min_size); \
380380 dst[i] *= g; \
381381 } \
@@ -568,5 +568,6 @@ const AVFilter ff_af_speechnorm = { · 186 unmodified lines
568568 .uninit = uninit,
569569 FILTER_INPUTS(inputs),
570570 FILTER_OUTPUTS(outputs),
571+ .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
571572 .process_command = process_command,
572573 };

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