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:
Sebastian Dröge 2016-04-25 16:48:36 +03:00
parent 7741e56db4
commit 155222017a

View file

@ -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]) {