Skip to content

Fix writing byte_alignment() in slice_header and rbsp_slice_trailing_bits() in slice_layer_rbsp()#160

Open
jamrial wants to merge 2 commits intompeg5:masterfrom
jamrial:rbsp_fix
Open

Fix writing byte_alignment() in slice_header and rbsp_slice_trailing_bits() in slice_layer_rbsp()#160
jamrial wants to merge 2 commits intompeg5:masterfrom
jamrial:rbsp_fix

Conversation

@jamrial
Copy link
Contributor

@jamrial jamrial commented Feb 24, 2026

Section 7.3.2.9 from ISO/IEC 23094-1:2020 states an alignment_bit_equal_to_one must be present before the zeroes that align to the next byte boundary.

Section 7.3.2.7 from ISO/IEC 23094-1:2020 states rbsp_trailing_bits() shall be present before any potential cabac_zero_word.
This PR does not attempt to add a byte_alignment() in slice_data() as defined in Section 7.3.8.1 given that, as far as i could see, xeve does not yet support writing more than one tile.

Section 7.3.2.9 from ISO/IEC 23094-1:2020 states an alignment_bit_equal_to_one must be present
before the zeroes that align to the next byte boundary.

Signed-off-by: James Almer <jamrial@gmail.com>
Section 7.3.2.7 from ISO/IEC 23094-1:2020 states rbsp_trailing_bits() shall be present
before any potential cabac_zero_word.

Signed-off-by: James Almer <jamrial@gmail.com>
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.

1 participant