format_cache.c: Add missing slin12 format to ast_format_cache_is_slinear().
[asterisk/asterisk.git] / main / format_cache.c
index 9b83a3b..6638a78 100644 (file)
@@ -500,6 +500,7 @@ struct ast_format *ast_format_cache_get_slin_by_rate(unsigned int rate)
 int ast_format_cache_is_slinear(struct ast_format *format)
 {
        if ((ast_format_cmp(format, ast_format_slin) == AST_FORMAT_CMP_EQUAL)
+               || (ast_format_cmp(format, ast_format_slin12) == AST_FORMAT_CMP_EQUAL)
                || (ast_format_cmp(format, ast_format_slin16) == AST_FORMAT_CMP_EQUAL)
                || (ast_format_cmp(format, ast_format_slin24) == AST_FORMAT_CMP_EQUAL)
                || (ast_format_cmp(format, ast_format_slin32) == AST_FORMAT_CMP_EQUAL)