summaryrefslogtreecommitdiff
path: root/gst/videoparsers
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-25 18:50:59 +0300
commit920ad271226fd6b0606d17bae8f70ac119ca710f (patch)
tree0d00f8d6f633dfb685714eb1f142b23b90c6ba34 /gst/videoparsers
parent4bdda1d8100b28c9f3a71658d86c5b47e220c53e (diff)
downloadgstreamer-plugins-bad-920ad271226fd6b0606d17bae8f70ac119ca710f.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
Diffstat (limited to 'gst/videoparsers')
-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 6029aa4cb..f56b995f2 100644
--- a/gst/videoparsers/gsth265parse.c
+++ b/gst/videoparsers/gsth265parse.c
@@ -1252,7 +1252,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) {