msdkenc: add an extra surface for hevc encoding

For some hevc 10bit 4K encoding cases, the encoding process may be
slow, and MediaSDK surface can't be released in time before one other
available surface is needed. So add an extra surface for hevc encoding
to avoid this issue.
This commit is contained in:
Fuwei Tang 2019-09-09 13:42:56 +08:00 committed by fuweitax
parent 523f4e4b50
commit 11bbd6f721

View file

@ -267,5 +267,7 @@ gst_msdkh265enc_class_init (GstMsdkH265EncClass * klass)
static void
gst_msdkh265enc_init (GstMsdkH265Enc * thiz)
{
GstMsdkEnc *msdk_enc = (GstMsdkEnc *) thiz;
thiz->lowpower = PROP_LOWPOWER_DEFAULT;
msdk_enc->num_extra_frames = 1;
}