History

avcodec/cbs_h2645: add cbs_sei_h274_types

Wu Jianhua committed 1 year ago

Commit e618f7d1 parent 848ceb11 file · +11 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/cbs_h2645.c+11−0
@@ -2310,6 +2310,10 @@ static const SEIMessageTypeDescriptor cbs_sei_h266_types[] = { · 2309 unmodified lines
23102310 SEI_MESSAGE_TYPE_END
23112311 };
23122312
2313+static const SEIMessageTypeDescriptor cbs_sei_h274_types[] = {
2314+ SEI_MESSAGE_TYPE_END,
2315+};
2316+
23132317 const SEIMessageTypeDescriptor *ff_cbs_sei_find_type(CodedBitstreamContext *ctx,
23142318 int payload_type)
23152319 {
@@ -2335,6 +2339,13 @@ const SEIMessageTypeDescriptor *ff_cbs_sei_find_type(CodedBitstreamContext *ctx, · 19 unmodified lines
23352339 return &codec_list[i];
23362340 }
23372341
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+
23382349 for (i = 0; cbs_sei_common_types[i].type >= 0; i++) {
23392350 if (cbs_sei_common_types[i].type == payload_type)
23402351 return &cbs_sei_common_types[i];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t