mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
openh264enc: Fix constrained-high encoding
constrained-high is high without B-frames, there is no EProfileIdc for this, so assume high instead of hitting an assert down the line. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2919>
This commit is contained in:
parent
d04a80676e
commit
cfd3bd4850
1 changed files with 4 additions and 3 deletions
|
@ -715,7 +715,8 @@ gst_openh264enc_get_profile_from_caps (GstCaps *outcaps, GstCaps *allowed_caps)
|
||||||
return PRO_BASELINE;
|
return PRO_BASELINE;
|
||||||
else if (!g_strcmp0 (profile, "main"))
|
else if (!g_strcmp0 (profile, "main"))
|
||||||
return PRO_MAIN;
|
return PRO_MAIN;
|
||||||
else if (!g_strcmp0 (profile, "high"))
|
else if (!g_strcmp0 (profile, "high") ||
|
||||||
|
!g_strcmp0 (profile, "constrained-high"))
|
||||||
return PRO_HIGH;
|
return PRO_HIGH;
|
||||||
|
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
|
|
Loading…
Reference in a new issue