summaryrefslogtreecommitdiff
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-26 09:44:28 +0300
commit8ba781238ee7fe9ce1c2d1cec0409bd234a8afb4 (patch)
treeb78ad83f37eb13a84ebe5b9c7069eb1e4adfb833
parent0951af727582957151c4a8f719df4aaac4610afa (diff)
downloadgstreamer-plugins-bad-8ba781238ee7fe9ce1c2d1cec0409bd234a8afb4.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
-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 9065b57f1..05b6b75da 100644
--- a/gst/videoparsers/gsth264parse.c
+++ b/gst/videoparsers/gsth264parse.c
@@ -1625,7 +1625,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)