1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

lavfi/avf_concat: rescale frame durations

This commit is contained in:
Anton Khirnov
2023-04-15 09:32:16 +02:00
parent 385430592a
commit cd30492773

View File

@@ -179,6 +179,7 @@ static int push_frame(AVFilterContext *ctx, unsigned in_no, AVFrame *buf)
struct concat_in *in = &cat->in[in_no]; struct concat_in *in = &cat->in[in_no];
buf->pts = av_rescale_q(buf->pts, inlink->time_base, outlink->time_base); buf->pts = av_rescale_q(buf->pts, inlink->time_base, outlink->time_base);
buf->duration = av_rescale_q(buf->duration, inlink->time_base, outlink->time_base);
in->pts = buf->pts; in->pts = buf->pts;
in->nb_frames++; in->nb_frames++;
/* add duration to input PTS */ /* add duration to input PTS */