mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
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
This commit is contained in:
@@ -190,6 +190,11 @@ struct ast_format *ast_format_mp4;
|
||||
*/
|
||||
struct ast_format *ast_format_vp8;
|
||||
|
||||
/*!
|
||||
* \brief Built-in cached vp9 format.
|
||||
*/
|
||||
struct ast_format *ast_format_vp9;
|
||||
|
||||
/*!
|
||||
* \brief Built-in cached jpeg format.
|
||||
*/
|
||||
@@ -345,6 +350,7 @@ static void format_cache_shutdown(void)
|
||||
ao2_replace(ast_format_h264, NULL);
|
||||
ao2_replace(ast_format_mp4, NULL);
|
||||
ao2_replace(ast_format_vp8, NULL);
|
||||
ao2_replace(ast_format_vp9, NULL);
|
||||
ao2_replace(ast_format_t140_red, NULL);
|
||||
ao2_replace(ast_format_t140, NULL);
|
||||
ao2_replace(ast_format_t38, NULL);
|
||||
@@ -444,6 +450,8 @@ static void set_cached_format(const char *name, struct ast_format *format)
|
||||
ao2_replace(ast_format_mp4, format);
|
||||
} else if (!strcmp(name, "vp8")) {
|
||||
ao2_replace(ast_format_vp8, format);
|
||||
} else if (!strcmp(name, "vp9")) {
|
||||
ao2_replace(ast_format_vp9, format);
|
||||
} else if (!strcmp(name, "red")) {
|
||||
ao2_replace(ast_format_t140_red, format);
|
||||
} else if (!strcmp(name, "t140")) {
|
||||
|
Reference in New Issue
Block a user