You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/cbs_h2645: add cbs_sei_h274_types
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user