[FFmpeg-cvslog] lavfi/avf_avectorscope: set frame durations
Anton Khirnov
git at videolan.org
Tue Oct 4 12:56:54 EEST 2022
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Aug 16 16:26:11 2022 +0200| [7d13c5dff04ac3a49c22d9a8bf719920ece45f77] | committer: Anton Khirnov
lavfi/avf_avectorscope: set frame durations
The filter is supposed to produce CFR output.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7d13c5dff04ac3a49c22d9a8bf719920ece45f77
---
libavfilter/avf_avectorscope.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/avf_avectorscope.c b/libavfilter/avf_avectorscope.c
index fe381a631d..2ed85f56e5 100644
--- a/libavfilter/avf_avectorscope.c
+++ b/libavfilter/avf_avectorscope.c
@@ -275,6 +275,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
memset(s->outpicref->data[0] + i * s->outpicref->linesize[0], 0, outlink->w * 4);
}
s->outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base);
+ s->outpicref->duration = 1;
av_frame_make_writable(s->outpicref);
ff_filter_execute(ctx, fade, NULL, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));
More information about the ffmpeg-cvslog
mailing list