From 0abec3f89a0a50906eda7ca547541948d74a80fa Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Wed, 20 Feb 2013 18:36:20 +0200 Subject: [PATCH] pbutils: recognise more H.264 profiles/levels Add profile/level extraction for Multiview High profile and Stereo High profile. https://bugzilla.gnome.org/show_bug.cgi?id=694346 --- gst-libs/gst/pbutils/codec-utils.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/pbutils/codec-utils.c b/gst-libs/gst/pbutils/codec-utils.c index 265468a080..1d2ba26264 100644 --- a/gst-libs/gst/pbutils/codec-utils.c +++ b/gst-libs/gst/pbutils/codec-utils.c @@ -452,6 +452,12 @@ gst_codec_utils_h264_get_profile (const guint8 * sps, guint len) case 44: profile = "cavlc-4:4:4-intra"; break; + case 118: + profile = "multiview-high"; + break; + case 128: + profile = "stereo-high"; + break; default: return NULL; } @@ -484,7 +490,7 @@ gst_codec_utils_h264_get_level (const guint8 * sps, guint len) csf3 = (sps[1] & 0x10) >> 4; - if (sps[2] == 11 && csf3) + if ((sps[2] == 11 && csf3) || sps[2] == 9) return "1b"; else if (sps[2] % 10 == 0) return digit_to_string (sps[2] / 10);