From 477fea97b49520510f91c50782ffa6ea52e6cf50 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Tue, 30 Apr 2024 11:12:05 +0800 Subject: [PATCH] vabaseenc: Do not set the min_pts Because all the va encoders improved their PTS/DTS algorithm, now it is impossible to generate minus DTS. So no underflow will happen and we do not need to set a 1000 hour offset now. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c index 4a7c648f66..dfa3cbfabc 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c @@ -130,12 +130,6 @@ gst_va_base_enc_start (GstVideoEncoder * venc) base->input_state = NULL; - /* Set the minimum pts to some huge value (1000 hours). This keeps - * the dts at the start of the stream from needing to be - * negative. */ - base->start_pts = GST_SECOND * 60 * 60 * 1000; - gst_video_encoder_set_min_pts (venc, base->start_pts); - return TRUE; }