diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-10-05 10:29:21 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-10-13 10:19:13 +0200 |
commit | 7c299c117823a766558e893ae4e9ac91b9dcdc7b (patch) | |
tree | c228a1602f3d0aa19b35cbf071ba97e79fcda8fb | |
parent | 476c90c2072f406fb3306f27030dd9c8c69b5441 (diff) | |
download | ffmpeg-7c299c117823a766558e893ae4e9ac91b9dcdc7b.tar.gz |
lavfi/settb: rescale input frame durations
-rw-r--r-- | libavfilter/settb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/settb.c b/libavfilter/settb.c index 5f589004f8..23cb02689b 100644 --- a/libavfilter/settb.c +++ b/libavfilter/settb.c @@ -128,6 +128,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) AVFilterLink *outlink = ctx->outputs[0]; frame->pts = rescale_pts(inlink, outlink, frame->pts); + frame->duration = av_rescale_q(frame->duration, inlink->time_base, outlink->time_base); return ff_filter_frame(outlink, frame); } |