mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
vp8enc: Update the latency when initializing the encoder
This commit is contained in:
parent
ac7cba4ac2
commit
53c47c361d
1 changed files with 4 additions and 0 deletions
|
@ -595,6 +595,10 @@ gst_vp8_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder,
|
|||
|
||||
status = vpx_codec_enc_init (&encoder->encoder, &vpx_codec_vp8_cx_algo,
|
||||
&cfg, 0);
|
||||
gst_base_video_encoder_set_latency (base_video_encoder, 0,
|
||||
gst_util_uint64_scale (encoder->max_latency,
|
||||
base_video_encoder->state.fps_d * GST_SECOND,
|
||||
base_video_encoder->state.fps_n));
|
||||
if (status) {
|
||||
GST_ERROR ("encoder input error");
|
||||
return GST_FLOW_ERROR;
|
||||
|
|
Loading…
Reference in a new issue