mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
vpXenc: CLOCK_TIME_NONE is not a valid min_latency value
We should just use 0 if we do not have the information
This commit is contained in:
parent
52a1773b40
commit
7874bba773
2 changed files with 2 additions and 4 deletions
|
@ -1681,8 +1681,7 @@ gst_vp8_enc_set_format (GstVideoEncoder * video_encoder,
|
|||
}
|
||||
|
||||
if (GST_VIDEO_INFO_FPS_D (info) == 0 || GST_VIDEO_INFO_FPS_N (info) == 0) {
|
||||
gst_video_encoder_set_latency (video_encoder, GST_CLOCK_TIME_NONE,
|
||||
GST_CLOCK_TIME_NONE);
|
||||
gst_video_encoder_set_latency (video_encoder, 0, GST_CLOCK_TIME_NONE);
|
||||
} else {
|
||||
gst_video_encoder_set_latency (video_encoder, 0,
|
||||
gst_util_uint64_scale (encoder->cfg.g_lag_in_frames,
|
||||
|
|
|
@ -1660,8 +1660,7 @@ gst_vp9_enc_set_format (GstVideoEncoder * video_encoder,
|
|||
}
|
||||
|
||||
if (GST_VIDEO_INFO_FPS_D (info) == 0 || GST_VIDEO_INFO_FPS_N (info) == 0) {
|
||||
gst_video_encoder_set_latency (video_encoder, GST_CLOCK_TIME_NONE,
|
||||
GST_CLOCK_TIME_NONE);
|
||||
gst_video_encoder_set_latency (video_encoder, 0, GST_CLOCK_TIME_NONE);
|
||||
} else {
|
||||
gst_video_encoder_set_latency (video_encoder, 0,
|
||||
gst_util_uint64_scale (encoder->cfg.g_lag_in_frames,
|
||||
|
|
Loading…
Reference in a new issue