From 5a5bf4b3e302d8f3d7541c26bb7ceff4f11c1628 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 6 Mar 2018 15:18:46 +0100 Subject: h264parse: add constrained and progressive profiles Those profiles have been added in the version 2012-01 and 2011-06 of the AVC spec. https://bugzilla.gnome.org/show_bug.cgi?id=794127 --- gst/videoparsers/gsth264parse.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gst') diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 7751ea21a..903d204ad 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -1629,11 +1629,19 @@ get_profile_string (GstH264SPS * sps) profile = "extended"; break; case 100: - profile = "high"; + if (sps->constraint_set4_flag) { + if (sps->constraint_set5_flag) + profile = "constrained-high"; + else + profile = "progressive-high"; + } else + profile = "high"; break; case 110: if (sps->constraint_set3_flag) profile = "high-10-intra"; + else if (sps->constraint_set4_flag) + profile = "progressive-high-10"; else profile = "high-10"; break; -- cgit v1.2.1