README.md: add example Copyright comment block Bug: aomedia:3525 Change-Id: I0ed14989717545d9b84fe3cd300d7d29bacfbef2
diff --git a/README.md b/README.md index f81e13e..e6e822b 100644 --- a/README.md +++ b/README.md
@@ -30,7 +30,8 @@ - [Running tests directly](#running-test_libaom-directly) - [Running tests via CMake](#running-the-tests-via-the-cmake-build) 3. [Coding style](#coding-style) -4. [Submitting patches](#submitting-patches) +4. [License header](#license-header) +5. [Submitting patches](#submitting-patches) - [Login cookie](#login-cookie) - [Contributor agreement](#contributor-agreement) - [Testing your code](#testing-your-code) @@ -39,8 +40,8 @@ - [Incorporating Reviewer Comments](#incorporating-reviewer-comments) - [Submitting your change](#submitting-your-change) - [Viewing change status](#viewing-the-status-of-uploaded-changes) -5. [Support](#support) -6. [Bug reports](#bug-reports) +6. [Support](#support) +7. [Bug reports](#bug-reports) ## Building the library and applications {#building-the-library-and-applications} @@ -567,6 +568,25 @@ $ git clang-format -f -p ~~~ +## License header {#license-header} + +Use the following comment block in new C/C++ source files, replacing "${year}" +with the current year. The same comment should be added to other file types, +adjusting the comment syntax as necessary. + +``` +/* + * Copyright (c) ${year}, Alliance for Open Media. All rights reserved. + * + * This source code is subject to the terms of the BSD 2 Clause License and + * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License + * was not distributed with this source code in the LICENSE file, you can + * obtain it at www.aomedia.org/license/software. If the Alliance for Open + * Media Patent License 1.0 was not distributed with this source code in the + * PATENTS file, you can obtain it at www.aomedia.org/license/patent. + */ +``` + ## Submitting patches {#submitting-patches} We manage the submission of patches using the