pbutils: recognise more H.264 profiles/levels
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 20 Feb 2013 16:36:20 +0000 (18:36 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 21 Feb 2013 23:55:10 +0000 (23:55 +0000)
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

index 265468a..1d2ba26 100644 (file)
@@ -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);