mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
nvvp9sldec: Drop frames on non-keyframe format change
NVDEC doesn't seem to be able to handle the case Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1407>
This commit is contained in:
parent
e2e45e51b0
commit
2c834b5fc7
1 changed files with 5 additions and 0 deletions
|
@ -150,6 +150,7 @@ done:
|
|||
static gboolean
|
||||
gst_nv_vp9_dec_open (GstVideoDecoder * decoder)
|
||||
{
|
||||
GstVp9Decoder *vp9dec = GST_VP9_DECODER (decoder);
|
||||
GstNvVp9Dec *self = GST_NV_VP9_DEC (decoder);
|
||||
GstNvVp9DecClass *klass = GST_NV_VP9_DEC_GET_CLASS (self);
|
||||
|
||||
|
@ -167,6 +168,10 @@ gst_nv_vp9_dec_open (GstVideoDecoder * decoder)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* NVDEC doesn't support non-keyframe resolution change and it will result
|
||||
* in outputting broken frames */
|
||||
gst_vp9_decoder_set_non_keyframe_format_change_support (vp9dec, FALSE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue