diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-08-04 21:52:58 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-08-04 21:52:58 +0200 |
commit | 20ebcbd52055a918d07ba1719ff76330f697cd8e (patch) | |
tree | f8918a1f068c62084c03d8411942f037c49033ca | |
parent | 6d2365882f281f9452b31b91edb2e6a2d4f5ff08 (diff) | |
download | ffmpeg-20ebcbd52055a918d07ba1719ff76330f697cd8e.tar.gz |
avfilter/avf_showspectrum: fix last frame/eof timestamp
-rw-r--r-- | libavfilter/avf_showspectrum.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |