mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 22:28:22 +00:00
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/6786>
This commit is contained in:
parent
607dadbc53
commit
3c26c0bc33
1 changed files with 0 additions and 6 deletions
|
@ -130,12 +130,6 @@ gst_va_base_enc_start (GstVideoEncoder * venc)
|
||||||
|
|
||||||
base->input_state = NULL;
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue