Skip to content

Exclude sh_from_leading from the sequence header consistency check - #5568

Open
xinzhao-apple wants to merge 1 commit into
AOMediaCodec:mainfrom
xinzhao-apple:mr/avm-bugfix2
Open

xinzhao-apple wants to merge 1 commit into
AOMediaCodec:mainfrom
xinzhao-apple:mr/avm-bugfix2

Conversation

@xinzhao-apple

Copy link
Copy Markdown
Contributor

are_seq_headers_consistent() memcmp()s SequenceHeader up to op_params, which includes sh_from_leading, a decoder-side flag that is not part of the sequence header syntax. When the active sequence header is re-sent bit-identically in a leading temporal unit, the stored copy is tagged sh_from_leading = 1 while the active one has 0, so the next leading tile group fails with "Sequence Header changed at OBU_LEADING_TILE_GROUP" even though the spec allows bit-identical redundant copies. Skip the flag in the comparison.

No spec change is needed, this aligns the AVM decoder with the AV2 spec.

are_seq_headers_consistent() memcmp()s SequenceHeader up to op_params,
which includes sh_from_leading, a decoder-side flag that is not part of
the sequence header syntax. When the active sequence header is re-sent
bit-identically in a leading temporal unit, the stored copy is tagged
sh_from_leading = 1 while the active one has 0, so the next leading tile
group fails with "Sequence Header changed at OBU_LEADING_TILE_GROUP"
even though the spec allows bit-identical redundant copies. Skip the
flag in the comparison.
@xinzhao-apple xinzhao-apple added the bug Something isn't working label Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cla-signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants