mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
core: Add H.265/HEVC passthrough support
This change adds H.265/HEVC as a known codec and creates a cached "h265" media format for use. Note that RFC 7798 section 7.2 also describes additional SDP parameters. Handling of these is not yet supported. ASTERISK-28512 Change-Id: I26d262cc4110b4f7e99348a3ddc53bad0d2cd1f2
This commit is contained in:
@@ -806,6 +806,13 @@ static struct ast_codec h264 = {
|
||||
.sample_rate = 1000,
|
||||
};
|
||||
|
||||
static struct ast_codec h265 = {
|
||||
.name = "h265",
|
||||
.description = "H.265 video",
|
||||
.type = AST_MEDIA_TYPE_VIDEO,
|
||||
.sample_rate = 1000,
|
||||
};
|
||||
|
||||
static struct ast_codec mpeg4 = {
|
||||
.name = "mpeg4",
|
||||
.description = "MPEG4 video",
|
||||
@@ -971,6 +978,7 @@ int ast_codec_builtin_init(void)
|
||||
res |= CODEC_REGISTER_AND_CACHE(h263);
|
||||
res |= CODEC_REGISTER_AND_CACHE(h263p);
|
||||
res |= CODEC_REGISTER_AND_CACHE(h264);
|
||||
res |= CODEC_REGISTER_AND_CACHE(h265);
|
||||
res |= CODEC_REGISTER_AND_CACHE(mpeg4);
|
||||
res |= CODEC_REGISTER_AND_CACHE(vp8);
|
||||
res |= CODEC_REGISTER_AND_CACHE(vp9);
|
||||
|
Reference in New Issue
Block a user