Skip to content

Fix setting rbsp_trailing_bits and Unregistered User Data SEI payload_size#159

Merged
dariusz-f merged 2 commits intompeg5:masterfrom
jamrial:rbsp_fix
Feb 24, 2026
Merged

Fix setting rbsp_trailing_bits and Unregistered User Data SEI payload_size#159
dariusz-f merged 2 commits intompeg5:masterfrom
jamrial:rbsp_fix

Conversation

@jamrial
Copy link
Contributor

@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 written before the zeroes that align to a byte boundary.
I don't have access to the 2023 amendment of the spec, but i very much doubt it changed the syntax of rbsp_trailing_bits().

As for SEI, the value of payload_size was being unnecessarily converted to bits, resulting in broken SEI NALUs.

The value was being unnecesarly converted to bits, resulting in broken SEI
NALUs.

Signed-off-by: James Almer <jamrial@gmail.com>
Section 7.3.2.8 from ISO/IEC 23094-1:2020 states a rbsp_stop_one_bit must be written, before
the zeroes that align to the next byte boundary.

Signed-off-by: James Almer <jamrial@gmail.com>
@dariusz-f dariusz-f merged commit 429c18a into mpeg5:master Feb 24, 2026
6 checks passed
@jamrial jamrial deleted the rbsp_fix branch February 24, 2026 19:10
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