From 155222017a01c401bc61a62f31c74e82cf8c3001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 25 Apr 2016 16:48:36 +0300 Subject: [PATCH] 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 --- gst-libs/gst/pbutils/codec-utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/pbutils/codec-utils.c b/gst-libs/gst/pbutils/codec-utils.c index 6eff83a292..1fe2dc191a 100644 --- a/gst-libs/gst/pbutils/codec-utils.c +++ b/gst-libs/gst/pbutils/codec-utils.c @@ -835,7 +835,9 @@ gst_codec_utils_h265_get_level (const guint8 * profile_tier_level, guint 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); else { switch (profile_tier_level[11]) {