diff options
author | Joshua Colp <jcolp@digium.com> | 2017-07-24 18:30:59 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2017-07-24 18:46:28 +0000 |
commit | 24bb5a89089caca8e16989bab7458617b91e4ef4 (patch) | |
tree | a3ff6b0fde8a84cbd901f732cab380739740b8fd /main/codec_builtin.c | |
parent | 07f8e45a90d768efcc32a4e4f392162912c86f0f (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 5fdfa7e12..9ba33ee35 100644 --- a/main/codec_builtin.c +++ b/main/codec_builtin.c @@ -783,6 +783,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", @@ -922,6 +929,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(none); |