Fixed init of H.264 profile/level support table on iOS

Bug: webrtc:9134, webrtc:7992
Change-Id: Ideabfae10532f815a3e95b18bad8e950da53306b
Reviewed-on: https://webrtc-review.googlesource.com/73700
Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Magnus Jedvert <magjed@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23123}
This commit is contained in:
Yura Yaroshevich
2018-05-02 13:06:34 +03:00
committed by Commit Bot
parent 25f0c206df
commit 1d87148a4f
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ enum Level {
};
struct ProfileLevelId {
ProfileLevelId(Profile profile, Level level)
constexpr ProfileLevelId(Profile profile, Level level)
: profile(profile), level(level) {}
Profile profile;
Level level;

View File

@ -22,7 +22,7 @@ struct SupportedH264Profile {
const ProfileLevelId profile;
};
const SupportedH264Profile kH264MaxSupportedProfiles[] = {
constexpr SupportedH264Profile kH264MaxSupportedProfiles[] = {
// iPhones with at least iOS 9
{RTCDeviceTypeIPhoneX, {kProfileHigh, kLevel5_2}}, // https://support.apple.com/kb/SP770
{RTCDeviceTypeIPhone8, {kProfileHigh, kLevel5_2}}, // https://support.apple.com/kb/SP767