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
@ -643,6 +643,10 @@ gst_x265_enc_start (GstVideoEncoder * encoder)
|
|||||||
|
|
||||||
g_ptr_array_set_size (x265enc->peer_profiles, 0);
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user