diff options
author | Joshua Colp <jcolp@digium.com> | 2017-07-24 18:30:59 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2017-07-24 13:51:12 -0500 |
commit | 927fc6bbd9d547a55bece68719d1c8db8b34a88d (patch) | |
tree | b6306e7c18243b84f0ca89a00afc38bd79dfd319 /main/codec_builtin.c | |
parent | 9aa4942a494c118c9141129eb50f283069fb5403 (diff) |
core: Add VP9 passthrough support.
This change adds VP9 as a known codec and creates a cached
"vp9" media format for use.
Change-Id: I025a93ed05cf96153d66f36db1839109cc24c5cc
Diffstat (limited to 'main/codec_builtin.c')
-rw-r--r-- | main/codec_builtin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/codec_builtin.c b/main/codec_builtin.c index 32ec12d3d..25aa51384 100644 --- a/main/codec_builtin.c +++ b/main/codec_builtin.c @@ -820,6 +820,13 @@ static struct ast_codec vp8 = { .sample_rate = 1000, }; +static struct ast_codec vp9 = { + .name = "vp9", + .description = "VP9 video", + .type = AST_MEDIA_TYPE_VIDEO, + .sample_rate = 1000, +}; + static struct ast_codec t140red = { .name = "red", .description = "T.140 Realtime Text with redundancy", @@ -966,6 +973,7 @@ int ast_codec_builtin_init(void) res |= CODEC_REGISTER_AND_CACHE(h264); res |= CODEC_REGISTER_AND_CACHE(mpeg4); res |= CODEC_REGISTER_AND_CACHE(vp8); + res |= CODEC_REGISTER_AND_CACHE(vp9); res |= CODEC_REGISTER_AND_CACHE(t140red); res |= CODEC_REGISTER_AND_CACHE(t140); res |= CODEC_REGISTER_AND_CACHE(t38); |