[FFmpeg-cvslog] avfilter/avf_showcwt: fix frame slide output

Paul B Mahol git at videolan.org
Mon Jul 10 19:53:19 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jul 10 15:58:47 2023 +0200| [f3896a148ebdfea15de3366066bcb2fa32f7d915] | committer: Paul B Mahol

avfilter/avf_showcwt: fix frame slide output

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f3896a148ebdfea15de3366066bcb2fa32f7d915
---

 libavfilter/avf_showcwt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index a3aa7627ec..896e470dd1 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -597,7 +597,6 @@ static int config_output(AVFilterLink *outlink)
         break;
     }
 
-    s->new_frame = 1;
     s->nb_threads = FFMIN(s->frequency_band_count, ff_filter_get_nb_threads(ctx));
     s->nb_channels = inlink->ch_layout.nb_channels;
     s->old_pts = AV_NOPTS_VALUE;
@@ -1010,10 +1009,8 @@ static int activate(AVFilterContext *ctx)
                 ff_filter_execute(ctx, run_channels_cwt_prepare, fin, NULL,
                                   FFMIN(s->nb_threads, s->nb_channels));
                 if (fin) {
-                    if ((s->hop_index == 0 && s->slide != SLIDE_FRAME) || s->new_frame) {
+                    if (s->hop_index == 0)
                         s->in_pts = fin->pts;
-                        s->new_frame = 0;
-                    }
                     s->hop_index += fin->nb_samples;
                     av_frame_free(&fin);
                 } else {



More information about the ffmpeg-cvslog mailing list