91 { 1280, 720, 12, 120 },
92 { 1280, 720, 16, 150 },
96 { 3840, 2160, 6, 150 },
97 { 3840, 2160, 7, 180 },
98 { 3840, 2160, 16, 180 },
104 .general_profile_idc = 1,
105 .general_tier_flag = 0,
106 .general_profile_compatibility_flag[1] = 1,
112 .general_profile_idc = 4,
113 .general_tier_flag = 0,
114 .general_profile_compatibility_flag[4] = 1,
115 .general_max_12bit_constraint_flag = 1,
116 .general_max_10bit_constraint_flag = 0,
117 .general_max_8bit_constraint_flag = 0,
118 .general_max_422chroma_constraint_flag = 1,
119 .general_max_420chroma_constraint_flag = 1,
120 .general_max_monochrome_constraint_flag = 0,
121 .general_intra_constraint_flag = 0,
122 .general_one_picture_only_constraint_flag = 0,
123 .general_lower_bit_rate_constraint_flag = 1,
129 .general_profile_idc = 4,
130 .general_tier_flag = 0,
131 .general_profile_compatibility_flag[4] = 1,
132 .general_max_12bit_constraint_flag = 1,
133 .general_max_10bit_constraint_flag = 0,
134 .general_max_8bit_constraint_flag = 0,
135 .general_max_422chroma_constraint_flag = 1,
136 .general_max_420chroma_constraint_flag = 0,
137 .general_max_monochrome_constraint_flag = 0,
138 .general_intra_constraint_flag = 1,
139 .general_one_picture_only_constraint_flag = 0,
145 .general_profile_idc = 5,
146 .general_tier_flag = 0,
147 .general_profile_compatibility_flag[5] = 1,
148 .general_max_14bit_constraint_flag = 1,
149 .general_max_12bit_constraint_flag = 0,
150 .general_max_10bit_constraint_flag = 0,
151 .general_max_8bit_constraint_flag = 0,
152 .general_max_422chroma_constraint_flag = 0,
153 .general_max_420chroma_constraint_flag = 0,
154 .general_max_monochrome_constraint_flag = 0,
155 .general_intra_constraint_flag = 0,
156 .general_one_picture_only_constraint_flag = 0,
157 .general_lower_bit_rate_constraint_flag = 1,
163 .general_profile_idc = 1,
164 .general_tier_flag = 1,
165 .general_profile_compatibility_flag[1] = 1,
168 static const struct {
215 static const struct {
248 #define CHECK(expected, format, ...) do { \
249 if (expected ? (!level || level->level_idc != expected) \
251 av_log(NULL, AV_LOG_ERROR, "Incorrect level for " \
252 format ": expected %d, got %d.\n", __VA_ARGS__, \
253 expected, level ? level->level_idc : -1); \