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

Failed to analyze sps from h264 data #99

Open
tubzby opened this issue Jul 7, 2021 · 0 comments
Open

Failed to analyze sps from h264 data #99

tubzby opened this issue Jul 7, 2021 · 0 comments

Comments

@tubzby
Copy link

tubzby commented Jul 7, 2021

In file "xiecc_rtmp.c", sps nal type is hardcoded as 0x67, it's ok for most of the cases.

Recently I'm working on a DJI remote controller which is android 7.0, it's sps nal byte is 0x27, pps: 0x28, iframe: 0x25, in this case, the sps nal unit is totally ignored thus cause this stream invalid.

We should check if ((byte & 0x1f) == 0x07) to make sure it's a sps unit, which is consistent with other part of xiecc_rtmp.c.

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