mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #2040] fix SEI payload size handling and type correctness #2846
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/2040
Author: @THE-Amrit-mahto-05
Created: 1/18/2026
Status: 🔄 Open
Base:
master← Head:fix/avc-sei-payload-size📝 Commits (3)
3618c23rust/avc: fix SEI payload size handling and type correctnessfe6dad8use u32 for SEI payload type and size2dfb44dre running CI📊 Changes
1 file changed (+4 additions, -4 deletions)
View changed files
📝
src/rust/src/avc/sei.rs(+4 -4)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Description
payload_typeandpayload_sizewere previously inferred or explicitly defined asi32, which required repeated casting when indexing buffers or comparing against slice lengths. This added unnecessary casts and could theoretically lead to incorrect behavior for large payload values.Fix
payload_typeandpayload_sizeto explicitusize.as i32casts during accumulation.as usizecasts during indexing and bounds checks.seibuf_idxarithmetic remains type-safe and consistent.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.