mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
msdkh264enc: Set profile as unknown when not specified by downstream
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5039>
This commit is contained in:
parent
4e47a73ddf
commit
8846400b83
1 changed files with 1 additions and 3 deletions
|
@ -301,8 +301,6 @@ gst_msdkh264enc_set_format (GstMsdkEnc * encoder)
|
||||||
return FALSE;
|
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);
|
s = gst_caps_get_structure (allowed_caps, 0);
|
||||||
|
|
||||||
profile = gst_structure_get_string (s, "profile");
|
profile = gst_structure_get_string (s, "profile");
|
||||||
|
@ -316,7 +314,7 @@ gst_msdkh264enc_set_format (GstMsdkEnc * encoder)
|
||||||
} else if (!strcmp (profile, "constrained-baseline")) {
|
} else if (!strcmp (profile, "constrained-baseline")) {
|
||||||
thiz->profile = MFX_PROFILE_AVC_CONSTRAINED_BASELINE;
|
thiz->profile = MFX_PROFILE_AVC_CONSTRAINED_BASELINE;
|
||||||
} else {
|
} else {
|
||||||
g_assert_not_reached ();
|
thiz->profile = MFX_PROFILE_UNKNOWN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue