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