mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
vpxenc: fix warning about decreasing PTS on first frame
The fields used to track this state should be initialized when codec->inited is FALSE on set_format, not TRUE Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3200 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5876>
This commit is contained in:
parent
5e4e57ddb3
commit
03d07e8e52
1 changed files with 2 additions and 2 deletions
|
@ -1743,10 +1743,10 @@ gst_vpx_enc_set_format (GstVideoEncoder * video_encoder,
|
|||
vpx_codec_destroy (&encoder->encoder);
|
||||
encoder->inited = FALSE;
|
||||
encoder->multipass_cache_idx++;
|
||||
encoder->last_pts = GST_CLOCK_TIME_NONE;
|
||||
encoder->last_input_duration = GST_CLOCK_TIME_NONE;
|
||||
} else {
|
||||
g_mutex_lock (&encoder->encoder_lock);
|
||||
encoder->last_pts = GST_CLOCK_TIME_NONE;
|
||||
encoder->last_input_duration = GST_CLOCK_TIME_NONE;
|
||||
}
|
||||
|
||||
encoder->cfg.g_bit_depth = encoder->cfg.g_input_bit_depth = info->finfo->bits;
|
||||
|
|
Loading…
Reference in a new issue