summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {