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

Xiang, Haihao haihao.xiang at intel.com
Fri Mar 17 04:38:54 EET 2023


From: Haihao Xiang <haihao.xiang at intel.com>

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

Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>
---
 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;
 }
-- 
2.25.1



More information about the ffmpeg-devel mailing list