History

avfilter/avf_showcwt: fix frame slide output

Paul B Mahol committed 3 years ago

Commit f3896a11 parent 13246981 file · +1 −4Browse files

Unified · Split

libavfilter/avf_showcwt.c+1−4
@@ -597,7 +597,6 @@ static int config_output(AVFilterLink *outlink) · 596 unmodified lines
597597 break;
598598 }
599599
600− s->new_frame = 1;
601600 s->nb_threads = FFMIN(s->frequency_band_count, ff_filter_get_nb_threads(ctx));
602601 s->nb_channels = inlink->ch_layout.nb_channels;
603602 s->old_pts = AV_NOPTS_VALUE;
@@ -1010,10 +1009,8 @@ static int activate(AVFilterContext *ctx) · 406 unmodified lines
10101009 ff_filter_execute(ctx, run_channels_cwt_prepare, fin, NULL,
10111010 FFMIN(s->nb_threads, s->nb_channels));
10121011 if (fin) {
1013− if ((s->hop_index == 0 && s->slide != SLIDE_FRAME) || s->new_frame) {
1012+ if (s->hop_index == 0)
10141013 s->in_pts = fin->pts;
1015− s->new_frame = 0;
1016− }
10171014 s->hop_index += fin->nb_samples;
10181015 av_frame_free(&fin);
10191016 } else {

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