Skip to content

Fix reading rbsp_trailing_bits()#88

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

Fix reading rbsp_trailing_bits()#88
jamrial wants to merge 3 commits intompeg5:masterfrom
jamrial:rbsp_fix

Conversation

@jamrial
Copy link

@jamrial jamrial commented Feb 24, 2026

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

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 parse the 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 and thus i can't test it.

Section 7.3.2.8 from ISO/IEC 23094-1:2020 states a rbsp_stop_one_bit 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.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