Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When parse h264 sps, its width and height was never right #696

Closed
howardhuang666 opened this issue May 16, 2024 · 0 comments
Closed

When parse h264 sps, its width and height was never right #696

howardhuang666 opened this issue May 16, 2024 · 0 comments

Comments

@howardhuang666
Copy link

1715853688472
1715854081498
1715854179224
sorry for my english.
In your code, absl::optionalwebrtc::SpsParser::SpsState sps = webrtc::SpsParser::ParseSps(buffer + index.payload_start_offset, index.payload_size); buffer + index.payload_start_offset includes nalu type, but webrtc::SpsParser::ParseSps will read first byte as profile_idc, so sps.width and sps.height was never right, may you can fix it, that was confused.

@howardhuang666 howardhuang666 changed the title When parse h264 sps, its weight and height was never right When parse h264 sps, its width and height was never right May 16, 2024
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

No branches or pull requests

1 participant