mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavfi/vf_vpp_qsv: fix duration in pass-through mode
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
parent
e63d9ba007
commit
567e78b283
1 changed files with 5 additions and 0 deletions
|
|
@ -582,6 +582,11 @@ static int activate(AVFilterContext *ctx)
|
|||
if (in->pts != AV_NOPTS_VALUE)
|
||||
in->pts = av_rescale_q(in->pts, inlink->time_base, outlink->time_base);
|
||||
|
||||
if (outlink->frame_rate.num && outlink->frame_rate.den)
|
||||
in->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base);
|
||||
else
|
||||
in->duration = 0;
|
||||
|
||||
ret = ff_filter_frame(outlink, in);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue