From 11bbd6f721367f2140f42a6cc8858b07724922fb Mon Sep 17 00:00:00 2001 From: Fuwei Tang Date: Mon, 9 Sep 2019 13:42:56 +0800 Subject: [PATCH] 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. --- sys/msdk/gstmsdkh265enc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/msdk/gstmsdkh265enc.c b/sys/msdk/gstmsdkh265enc.c index 46f64eb035..273a72ed82 100644 --- a/sys/msdk/gstmsdkh265enc.c +++ b/sys/msdk/gstmsdkh265enc.c @@ -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; }