mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
x264enc: Don't set max latency to the same value as the encoder latency
The meaning of the max latency is *not* the maximum latency this element will introduce. It is the maximum latency this element can endure without overflowing any buffers, which is infinite for x264enc. Fixes latency configuration in zero latency mode, where max latency was becoming 0... which usually won't work well if something else introduces latency as then max < min in the end, and latency configuration just fails.
This commit is contained in:
parent
5f075f3361
commit
5dd1a28906
1 changed files with 1 additions and 1 deletions
|
@ -1741,7 +1741,7 @@ gst_x264_enc_set_latency (GstX264Enc * encoder)
|
|||
GST_TIME_ARGS (latency), max_delayed_frames);
|
||||
|
||||
gst_video_encoder_set_latency (GST_VIDEO_ENCODER (encoder), latency,
|
||||
latency);
|
||||
GST_CLOCK_TIME_NONE);
|
||||
} else {
|
||||
/* We can't do live as we don't know our latency */
|
||||
gst_video_encoder_set_latency (GST_VIDEO_ENCODER (encoder),
|
||||
|
|
Loading…
Reference in a new issue