From: Seungha Yang Date: Thu, 2 Dec 2021 07:04:21 +0000 (+0900) Subject: nvvp9sldec: Drop frames on non-keyframe format change X-Git-Tag: 1.20.0~217 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c834b5fc7e5cb8fea615d1d113275c14f727b52;p=platform%2Fupstream%2Fgstreamer.git nvvp9sldec: Drop frames on non-keyframe format change NVDEC doesn't seem to be able to handle the case Part-of: --- diff --git a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvvp9dec.c b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvvp9dec.c index 8f13451..3ba6fce 100644 --- a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvvp9dec.c +++ b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvvp9dec.c @@ -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; }