diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index 6029aa4cb4..f56b995f20 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) {