ffmpeg | branch: master | Paul B Mahol <one...@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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".