Browse Source

avfilter/vf_scale: don't attempt to rescale AV_NOPTS_VALUE

Finishes fixing issue #20589.

Signed-off-by: James Almer <jamrial@gmail.com>
James Almer 1 tháng trước cách đây
mục cha
commit
b9cc8e3210
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      libavfilter/vf_scale.c

+ 1 - 1
libavfilter/vf_scale.c

@@ -951,7 +951,7 @@ static int do_scale(FFFrameSync *fs)
         goto err;
 
     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);
 
 err: