1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-10-06 05:47:18 +02:00

avfilter/vf_scale: don't attempt to rescale AV_NOPTS_VALUE

Finishes fixing issue #20589.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2025-09-24 20:31:26 -03:00
parent 5614672d1b
commit b9cc8e3210

View File

@@ -951,7 +951,7 @@ static int do_scale(FFFrameSync *fs)
goto err; goto err;
av_assert0(out); av_assert0(out);
out->pts = av_rescale_q(fs->pts, fs->time_base, outlink->time_base); out->pts = av_rescale_q_rnd(fs->pts, fs->time_base, outlink->time_base, AV_ROUND_NEAR_INF | AV_ROUND_PASS_MINMAX);
return ff_filter_frame(outlink, out); return ff_filter_frame(outlink, out);
err: err: