From 8846400b83f06ae8d0ef4fe060548dccc05ef251 Mon Sep 17 00:00:00 2001 From: Mengkejiergeli Ba Date: Fri, 14 Jul 2023 13:41:34 +0800 Subject: [PATCH] msdkh264enc: Set profile as unknown when not specified by downstream Part-of: --- subprojects/gst-plugins-bad/sys/msdk/gstmsdkh264enc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkh264enc.c b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkh264enc.c index e6966b4410..1d85c1385e 100644 --- a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkh264enc.c +++ b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkh264enc.c @@ -301,8 +301,6 @@ gst_msdkh264enc_set_format (GstMsdkEnc * encoder) return FALSE; } - allowed_caps = gst_caps_make_writable (allowed_caps); - allowed_caps = gst_caps_fixate (allowed_caps); s = gst_caps_get_structure (allowed_caps, 0); profile = gst_structure_get_string (s, "profile"); @@ -316,7 +314,7 @@ gst_msdkh264enc_set_format (GstMsdkEnc * encoder) } else if (!strcmp (profile, "constrained-baseline")) { thiz->profile = MFX_PROFILE_AVC_CONSTRAINED_BASELINE; } else { - g_assert_not_reached (); + thiz->profile = MFX_PROFILE_UNKNOWN; } }