[FFmpeg-cvslog] avfilter/avf_a3dscope,avf_showcwt: set video frame duration
Paul B Mahol
git at videolan.org
Tue Jan 17 15:55:42 EET 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Jan 17 14:34:47 2023 +0100| [6b8adbfe030d318123874456157270e985fd3078] | committer: Paul B Mahol
avfilter/avf_a3dscope,avf_showcwt: set video frame duration
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6b8adbfe030d318123874456157270e985fd3078
---
libavfilter/avf_a3dscope.c | 1 +
libavfilter/avf_showcwt.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/libavfilter/avf_a3dscope.c b/libavfilter/avf_a3dscope.c
index 089c8d8c01..d7fe2dcb75 100644
--- a/libavfilter/avf_a3dscope.c
+++ b/libavfilter/avf_a3dscope.c
@@ -243,6 +243,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
for (int y = 0; y < outlink->h; y++)
memset(out->data[0] + y * out->linesize[0], 0, outlink->w * 4);
out->pts = av_rescale_q(in->pts, inlink->time_base, outlink->time_base);
+ out->duration = 1;
projection_matrix(s->fov, half_width / half_height, 0.1f, 1000000.f, s->projection_matrix);
view_matrix(s->eye, s->zoom, s->roll, s->pitch, s->yaw, s->view_matrix);
diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index 2c7c447305..ed1bc4c65a 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -869,6 +869,7 @@ static int output_frame(AVFilterContext *ctx)
int64_t pts_offset = s->new_frame ? 0LL : av_rescale(s->ihop_index, s->hop_size, s->ihop_size);
s->outpicref->pts = av_rescale_q(s->in_pts + pts_offset, inlink->time_base, outlink->time_base);
+ s->outpicref->duration = 1;
}
s->ihop_index++;
More information about the ffmpeg-cvslog
mailing list