summaryrefslogtreecommitdiff
path: root/gst/videoparsers
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-04-25 16:50:18 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-04-25 18:50:59 +0300
commit4bdda1d8100b28c9f3a71658d86c5b47e220c53e (patch)
tree5d05a9dede9eb66613bb0b2018aae130b6649b0c /gst/videoparsers
parentc7e0e8d6ab59fc410a7e9dcdfdacfbc26f6949d7 (diff)
downloadgstreamer-plugins-bad-4bdda1d8100b28c9f3a71658d86c5b47e220c53e.tar.gz
h264parse: H264 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/gsth264parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index 8a265c4d6..a75c0f7c0 100644
--- a/gst/videoparsers/gsth264parse.c
+++ b/gst/videoparsers/gsth264parse.c
@@ -1623,7 +1623,9 @@ get_profile_string (GstH264SPS * sps)
static const gchar *
get_level_string (GstH264SPS * sps)
{
- if ((sps->level_idc == 11 && sps->constraint_set3_flag)
+ if (sps->level_idc == 0)
+ return NULL;
+ else if ((sps->level_idc == 11 && sps->constraint_set3_flag)
|| sps->level_idc == 9)
return "1b";
else if (sps->level_idc % 10 == 0)