Skip to content

Loosen blockformat ID validation to allow for S-ADM frames#197

Merged
rsjbailey merged 1 commit intomasterfrom
sadm-blockid-fix
Feb 6, 2025
Merged

Loosen blockformat ID validation to allow for S-ADM frames#197
rsjbailey merged 1 commit intomasterfrom
sadm-blockid-fix

Conversation

@rsjbailey
Copy link
Contributor

An audioChannelFormat in an S-ADM frame can contain a set of AudioBlockFormats with an initialiser block.
This is a special block that has a counter value of 0. It may also contain a run of contiguous blocks that start from some integer n > 1. This commit allows non-contiguous IDs to be added to a document for this case only.

An audioChannelFormat in an S-ADM frame can contain a set of AudioBlockFormats
with an initialiser block.
This is a special block that has a counter value of 0. It may also contain a run
of contiguous blocks that start from some integer n > 1. This commit allows
non-contiguous IDs to be added to a document for this case only.
@rsjbailey
Copy link
Contributor Author

This is a slightly tidied version of the patch I sent over before. The helper function is in a nested namespace so it doesn't pollute folks autocomplete and the variable names have changed.
I've also removed conversions to int as uneccesary (it now uses the counter type directly, and only converts to it's underlying uint to do the increment)

@rsjbailey rsjbailey requested a review from davemar-bbc February 5, 2025 10:17
@rsjbailey rsjbailey merged commit c584887 into master Feb 6, 2025
8 checks passed
@rsjbailey rsjbailey deleted the sadm-blockid-fix branch February 6, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants