-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add low-level support for writing and validating
MixPresentationTags
.
- The IAMF spec has an asymmetric requirement where there SHALL be at most one `content_language`, but if they are present the remaining ones can be ignored. - Like other asymmetric requirements the encoder typically refuses to produce data which seemingly violates the requirement. - On read we will process and store duplicate `content_language` tags. - This means we will store them, even if they are not "really" valid. - Add a `CreateFromBuffer/SucceedsWithDuplicateContentLanguageTags` test to guard this behavior. - Although for this CL, the read falls into the `ObuBase::footer_`. - On the write side we will typically refuse to write data which seemingly violates the requirement. - Following the existing style - this gets enforced in `ValidateAndWrite`. - Add tests to guard this behavior, and a parallel test that *other* tags MAY be duplicated. PiperOrigin-RevId: 663496061
- Loading branch information
Showing
4 changed files
with
235 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters