ffmpeg | branch: master | Paul B Mahol <[email protected]> | Tue Jan 17 18:26:41 2023 +0100| [a13931843eccb35fe6a594a33e04869173cb94b6] | committer: Paul B Mahol
avfilter/avf_abitscope: set output time_base and output frame duration > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a13931843eccb35fe6a594a33e04869173cb94b6 --- libavfilter/avf_abitscope.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/avf_abitscope.c b/libavfilter/avf_abitscope.c index 58e2bdaf61..4fc3c06ecb 100644 --- a/libavfilter/avf_abitscope.c +++ b/libavfilter/avf_abitscope.c @@ -143,6 +143,7 @@ static int config_output(AVFilterLink *outlink) outlink->h = s->h; outlink->sample_aspect_ratio = (AVRational){1,1}; outlink->frame_rate = s->frame_rate; + outlink->time_base = av_inv_q(outlink->frame_rate); return 0; } @@ -233,7 +234,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) return AVERROR(ENOMEM); } - outpicref->pts = insamples->pts; + outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base); + outpicref->duration = 1; outpicref->sample_aspect_ratio = (AVRational){1,1}; switch (insamples->format) { _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
