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:
Thibault Saunier 2014-12-09 16:38:38 +01:00
parent 52a1773b40
commit 7874bba773
2 changed files with 2 additions and 4 deletions

View file

@ -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) { 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_video_encoder_set_latency (video_encoder, 0, GST_CLOCK_TIME_NONE);
GST_CLOCK_TIME_NONE);
} else { } else {
gst_video_encoder_set_latency (video_encoder, 0, gst_video_encoder_set_latency (video_encoder, 0,
gst_util_uint64_scale (encoder->cfg.g_lag_in_frames, gst_util_uint64_scale (encoder->cfg.g_lag_in_frames,

View file

@ -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) { 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_video_encoder_set_latency (video_encoder, 0, GST_CLOCK_TIME_NONE);
GST_CLOCK_TIME_NONE);
} else { } else {
gst_video_encoder_set_latency (video_encoder, 0, gst_video_encoder_set_latency (video_encoder, 0,
gst_util_uint64_scale (encoder->cfg.g_lag_in_frames, gst_util_uint64_scale (encoder->cfg.g_lag_in_frames,