avfilter/framesync: don't attempt to rescale AV_NOPTS_VALUE
Part of a fix for issue #20589. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
c605d2a7ae
commit
5614672d1b
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ static void framesync_inject_frame(FFFrameSync *fs, unsigned in, AVFrame *frame)
|
|||
|
||||
av_assert0(!fs->in[in].have_next);
|
||||
av_assert0(frame);
|
||||
pts = av_rescale_q(frame->pts, fs->in[in].time_base, fs->time_base);
|
||||
pts = av_rescale_q_rnd(frame->pts, fs->in[in].time_base, fs->time_base, AV_ROUND_NEAR_INF | AV_ROUND_PASS_MINMAX);
|
||||
frame->pts = pts;
|
||||
fs->in[in].frame_next = frame;
|
||||
fs->in[in].pts_next = pts;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue