summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showspectrum.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-08-04 21:52:58 +0200
committerPaul B Mahol <onemda@gmail.com>2021-08-04 21:52:58 +0200
commit20ebcbd52055a918d07ba1719ff76330f697cd8e (patch)
treef8918a1f068c62084c03d8411942f037c49033ca /libavfilter/avf_showspectrum.c
parent6d2365882f281f9452b31b91edb2e6a2d4f5ff08 (diff)
avfilter/avf_showspectrum: fix last frame/eof timestamp
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r--libavfilter/avf_showspectrum.c2
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;