mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
gstreamer: The encoder has no maximum latency
It will buffer as much as it needs to.
This commit is contained in:
parent
785ba05bca
commit
9128978042
1 changed files with 1 additions and 2 deletions
|
@ -736,12 +736,11 @@ gst_svtav1enc_set_format (GstVideoEncoder * encoder,
|
|||
|
||||
min_latency_frames = ((fps * 5) >> 2);
|
||||
|
||||
/* TODO: find a better value for max_latency */
|
||||
gst_video_encoder_set_latency(encoder,
|
||||
min_latency_frames * GST_SECOND /
|
||||
(svtav1enc->svt_config->frame_rate_numerator /
|
||||
svtav1enc->svt_config->frame_rate_denominator),
|
||||
3 * GST_SECOND);
|
||||
-1);
|
||||
|
||||
src_caps =
|
||||
gst_static_pad_template_get_caps (&gst_svtav1enc_src_pad_template);
|
||||
|
|
Loading…
Reference in a new issue