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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6773>
This commit is contained in:
He Junyan 2024-04-30 11:12:05 +08:00 committed by GStreamer Marge Bot
parent 184d94305c
commit 477fea97b4

View file

@ -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;
}