avcodec/cbs_h2645: add cbs_sei_h274_types
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
This commit is contained in:
parent
848ceb1329
commit
e618f7d5cf
1 changed files with 11 additions and 0 deletions
|
|
@ -2310,6 +2310,10 @@ static const SEIMessageTypeDescriptor cbs_sei_h266_types[] = {
|
|||
SEI_MESSAGE_TYPE_END
|
||||
};
|
||||
|
||||
static const SEIMessageTypeDescriptor cbs_sei_h274_types[] = {
|
||||
SEI_MESSAGE_TYPE_END,
|
||||
};
|
||||
|
||||
const SEIMessageTypeDescriptor *ff_cbs_sei_find_type(CodedBitstreamContext *ctx,
|
||||
int payload_type)
|
||||
{
|
||||
|
|
@ -2335,6 +2339,13 @@ const SEIMessageTypeDescriptor *ff_cbs_sei_find_type(CodedBitstreamContext *ctx,
|
|||
return &codec_list[i];
|
||||
}
|
||||
|
||||
if (ctx->codec->codec_id == AV_CODEC_ID_H266) {
|
||||
for (i = 0; cbs_sei_h274_types[i].type >= 0; i++) {
|
||||
if (cbs_sei_h274_types[i].type == payload_type)
|
||||
return &cbs_sei_h274_types[i];
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; cbs_sei_common_types[i].type >= 0; i++) {
|
||||
if (cbs_sei_common_types[i].type == payload_type)
|
||||
return &cbs_sei_common_types[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue