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
This commit is contained in:
Sreerenj Balachandran 2013-02-20 18:36:20 +02:00 committed by Tim-Philipp Müller
parent 9791f0aaf1
commit 0abec3f89a

View file

@ -452,6 +452,12 @@ gst_codec_utils_h264_get_profile (const guint8 * sps, guint len)
case 44: case 44:
profile = "cavlc-4:4:4-intra"; profile = "cavlc-4:4:4-intra";
break; break;
case 118:
profile = "multiview-high";
break;
case 128:
profile = "stereo-high";
break;
default: default:
return NULL; return NULL;
} }
@ -484,7 +490,7 @@ gst_codec_utils_h264_get_level (const guint8 * sps, guint len)
csf3 = (sps[1] & 0x10) >> 4; csf3 = (sps[1] & 0x10) >> 4;
if (sps[2] == 11 && csf3) if ((sps[2] == 11 && csf3) || sps[2] == 9)
return "1b"; return "1b";
else if (sps[2] % 10 == 0) else if (sps[2] % 10 == 0)
return digit_to_string (sps[2] / 10); return digit_to_string (sps[2] / 10);