summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-04-25 16:50:55 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-04-26 09:44:28 +0300
commit0951af727582957151c4a8f719df4aaac4610afa (patch)
treee8af330c75c218ad85eb4a2dac0af5544590899d
parent5cd77a4f57ec2c4433b74433246f664c5d9cfd1b (diff)
downloadgstreamer-plugins-bad-0951af727582957151c4a8f719df4aaac4610afa.tar.gz
h265parse: 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
-rw-r--r--gst/videoparsers/gsth265parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c
index 5a8f291ee..26e7c48c7 100644
--- a/gst/videoparsers/gsth265parse.c
+++ b/gst/videoparsers/gsth265parse.c
@@ -1254,7 +1254,9 @@ get_tier_string (guint8 tier_flag)
static const gchar *
get_level_string (guint8 level_idc)
{
- if (level_idc % 30 == 0)
+ if (level_idc == 0)
+ return NULL;
+ else if (level_idc % 30 == 0)
return digit_to_string (level_idc / 30);
else {
switch (level_idc) {