1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavfi/vf_deinterlace_qsv: set output frame durations

This commit is contained in:
Anton Khirnov 2022-10-11 10:47:42 +02:00
parent 4b2f380e0a
commit d1526f4dac

View File

@ -516,6 +516,11 @@ static int process_frame(AVFilterContext *ctx, const AVFrame *in,
out->pts++;
s->last_pts = out->pts;
if (outlink->frame_rate.num && outlink->frame_rate.den)
out->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base);
else
out->duration = 0;
ret = ff_filter_frame(outlink, out);
if (ret < 0)
return ret;