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:
parent
4b2f380e0a
commit
d1526f4dac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user