[FFmpeg-cvslog] avfilter/avf_showspectrum: fix last frame/eof timestamp

Paul B Mahol git at videolan.org
Wed Aug 4 23:44:45 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Aug  4 21:52:58 2021 +0200| [20ebcbd52055a918d07ba1719ff76330f697cd8e] | committer: Paul B Mahol

avfilter/avf_showspectrum: fix last frame/eof timestamp

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

 libavfilter/avf_showspectrum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 52bad5b2ad..14fc318166 100644
--- a/libavfilter/avf_showspectrum.c
+++ b/libavfilter/avf_showspectrum.c
@@ -1504,7 +1504,7 @@ static int activate(AVFilterContext *ctx)
                 memset(s->outpicref->data[2] + i * s->outpicref->linesize[2], 128, outlink->w);
             }
         }
-        s->outpicref->pts += s->consumed;
+        s->outpicref->pts += av_rescale_q(s->consumed, inlink->time_base, outlink->time_base);
         pts = s->outpicref->pts;
         ret = ff_filter_frame(outlink, s->outpicref);
         s->outpicref = NULL;



More information about the ffmpeg-cvslog mailing list