[FFmpeg-cvslog] lavfi/vf_vpp_qsv: set the right timestamp for AVERROR_EOF

Haihao Xiang git at videolan.org
Mon Mar 20 04:12:25 EET 2023


ffmpeg | branch: release/6.0 | Haihao Xiang <haihao.xiang at intel.com> | Thu Mar 16 10:20:52 2023 +0800| [a3c93c03adf3ba5eaf17a5acf85b9a324c8cabe7] | committer: Haihao Xiang

lavfi/vf_vpp_qsv: set the right timestamp for AVERROR_EOF

Rescale the timestamp for AVERROR_EOF. This can fix tickets 10261 and
10262.

Tested-by: Dmitry Rogozhkin <dmitry.v.rogozhkin at intel.com>
Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>
(cherry picked from commit 57afccc0ef8d3024ffb2d1b2d25c9670b9501248)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a3c93c03adf3ba5eaf17a5acf85b9a324c8cabe7
---

 libavfilter/vf_vpp_qsv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c
index ac77f7bb4b..b4dd7a4191 100644
--- a/libavfilter/vf_vpp_qsv.c
+++ b/libavfilter/vf_vpp_qsv.c
@@ -602,6 +602,7 @@ not_ready:
     return FFERROR_NOT_READY;
 
 eof:
+    pts = av_rescale_q(pts, inlink->time_base, outlink->time_base);
     ff_outlink_set_status(outlink, status, pts);
     return 0;
 }



More information about the ffmpeg-cvslog mailing list