Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -2310,6 +2310,10 @@ static const SEIMessageTypeDescriptor cbs_sei_h266_types[] = { · 2309 unmodified lines | ||
| 2310 | 2310 | SEI_MESSAGE_TYPE_END |
| 2311 | 2311 | }; |
| 2312 | 2312 | |
| 2313 | +static const SEIMessageTypeDescriptor cbs_sei_h274_types[] = { | |
| 2314 | + SEI_MESSAGE_TYPE_END, | |
| 2315 | +}; | |
| 2316 | + | |
| 2313 | 2317 | const SEIMessageTypeDescriptor *ff_cbs_sei_find_type(CodedBitstreamContext *ctx, |
| 2314 | 2318 | int payload_type) |
| 2315 | 2319 | { |
| @@ -2335,6 +2339,13 @@ const SEIMessageTypeDescriptor *ff_cbs_sei_find_type(CodedBitstreamContext *ctx, · 19 unmodified lines | ||
| 2335 | 2339 | return &codec_list[i]; |
| 2336 | 2340 | } |
| 2337 | 2341 | |
| 2342 | + if (ctx->codec->codec_id == AV_CODEC_ID_H266) { | |
| 2343 | + for (i = 0; cbs_sei_h274_types[i].type >= 0; i++) { | |
| 2344 | + if (cbs_sei_h274_types[i].type == payload_type) | |
| 2345 | + return &cbs_sei_h274_types[i]; | |
| 2346 | + } | |
| 2347 | + } | |
| 2348 | + | |
| 2338 | 2349 | for (i = 0; cbs_sei_common_types[i].type >= 0; i++) { |
| 2339 | 2350 | if (cbs_sei_common_types[i].type == payload_type) |
| 2340 | 2351 | return &cbs_sei_common_types[i]; |