mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 20:25:25 +00:00
x265enc: add negative DTS support
Use the same set_min_pts approach as x264enc. Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/304 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2340>
This commit is contained in:
parent
ba83f29cec
commit
08323f382c
1 changed files with 4 additions and 0 deletions
|
@ -643,6 +643,10 @@ gst_x265_enc_start (GstVideoEncoder * encoder)
|
|||
|
||||
g_ptr_array_set_size (x265enc->peer_profiles, 0);
|
||||
|
||||
/* make sure that we have enough time for first DTS,
|
||||
this is probably overkill for most streams */
|
||||
gst_video_encoder_set_min_pts (encoder, GST_SECOND * 60 * 60 * 1000);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue