mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
codec-utils: H265 level idc 0 is not valid
Don't put level=0 into the caps, it confuses other elements. https://bugzilla.gnome.org/show_bug.cgi?id=765538
This commit is contained in:
parent
7741e56db4
commit
155222017a
1 changed files with 3 additions and 1 deletions
|
@ -835,7 +835,9 @@ gst_codec_utils_h265_get_level (const guint8 * profile_tier_level, guint len)
|
||||||
|
|
||||||
GST_MEMDUMP ("ProfileTierLevel", profile_tier_level, len);
|
GST_MEMDUMP ("ProfileTierLevel", profile_tier_level, len);
|
||||||
|
|
||||||
if (profile_tier_level[11] % 30 == 0)
|
if (profile_tier_level[11] == 0)
|
||||||
|
return NULL;
|
||||||
|
else if (profile_tier_level[11] % 30 == 0)
|
||||||
return digit_to_string (profile_tier_level[11] / 30);
|
return digit_to_string (profile_tier_level[11] / 30);
|
||||||
else {
|
else {
|
||||||
switch (profile_tier_level[11]) {
|
switch (profile_tier_level[11]) {
|
||||||
|
|
Loading…
Reference in a new issue