From 0c1c2ce45ab4dc0591b0a863e0172b460d79d279 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Mon, 30 Sep 2019 09:09:23 +0800 Subject: [PATCH] msdk: remove some dead code --- sys/msdk/gstmsdkenc.c | 4 ---- sys/msdk/gstmsdkvc1dec.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/sys/msdk/gstmsdkenc.c b/sys/msdk/gstmsdkenc.c index df600e5a64..794e6c566d 100644 --- a/sys/msdk/gstmsdkenc.c +++ b/sys/msdk/gstmsdkenc.c @@ -291,10 +291,6 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz) thiz->vpp_param.vpp.In.AspectRatioH = info->par_d; thiz->vpp_param.vpp.In.PicStruct = MFX_PICSTRUCT_PROGRESSIVE; switch (GST_VIDEO_INFO_FORMAT (info)) { - case GST_VIDEO_FORMAT_NV12: - thiz->vpp_param.vpp.In.FourCC = MFX_FOURCC_NV12; - thiz->vpp_param.vpp.In.ChromaFormat = MFX_CHROMAFORMAT_YUV420; - break; case GST_VIDEO_FORMAT_YV12: case GST_VIDEO_FORMAT_I420: thiz->vpp_param.vpp.In.FourCC = MFX_FOURCC_YV12; diff --git a/sys/msdk/gstmsdkvc1dec.c b/sys/msdk/gstmsdkvc1dec.c index 0b0d78d5fd..99f191fc88 100644 --- a/sys/msdk/gstmsdkvc1dec.c +++ b/sys/msdk/gstmsdkvc1dec.c @@ -111,8 +111,6 @@ gst_msdkvc1dec_configure (GstMsdkDec * decoder) * encoded streams */ decoder->param.mfx.DecodedOrder = vc1dec->output_order; return TRUE; - - return TRUE; } static void