Message ID | 20221011095445.27001-2-anton@khirnov.net |
---|---|
State | Accepted |
Commit | d1526f4dacca42a5065b140d2e0058017e0e0049 |
Headers | show |
Series | [FFmpeg-devel,1/5] lavfi/vf_framepack: properly set output duration for framesequence output | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavfilter/vf_deinterlace_qsv.c b/libavfilter/vf_deinterlace_qsv.c index 3065d6ac95..98ed7283ad 100644 --- a/libavfilter/vf_deinterlace_qsv.c +++ b/libavfilter/vf_deinterlace_qsv.c @@ -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;