Unified · Split
| @@ -597,7 +597,6 @@ static int config_output(AVFilterLink *outlink) · 596 unmodified lines | ||
| 597 | 597 | break; |
| 598 | 598 | } |
| 599 | 599 | |
| 600 | − s->new_frame = 1; | |
| 601 | 600 | s->nb_threads = FFMIN(s->frequency_band_count, ff_filter_get_nb_threads(ctx)); |
| 602 | 601 | s->nb_channels = inlink->ch_layout.nb_channels; |
| 603 | 602 | s->old_pts = AV_NOPTS_VALUE; |
| @@ -1010,10 +1009,8 @@ static int activate(AVFilterContext *ctx) · 406 unmodified lines | ||
| 1010 | 1009 | ff_filter_execute(ctx, run_channels_cwt_prepare, fin, NULL, |
| 1011 | 1010 | FFMIN(s->nb_threads, s->nb_channels)); |
| 1012 | 1011 | if (fin) { |
| 1013 | − if ((s->hop_index == 0 && s->slide != SLIDE_FRAME) || s->new_frame) { | |
| 1012 | + if (s->hop_index == 0) | |
| 1014 | 1013 | s->in_pts = fin->pts; |
| 1015 | − s->new_frame = 0; | |
| 1016 | − } | |
| 1017 | 1014 | s->hop_index += fin->nb_samples; |
| 1018 | 1015 | av_frame_free(&fin); |
| 1019 | 1016 | } else { |