We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The function packet.PESHeader is supposed to return just the header for the PES, not the entire packet payload:
Example code:
payload, _ := packet.Payload(pkt) fmt.Printf("payload start payload: \n%X\n", payload) pesHeader, _ := packet.PESHeader(pkt) fmt.Printf("pes header: \n%X\n", pesHeader)
Output:
payload start payload: 000001BD0C32808005210001C55B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111110101249210124921012492101249210124920000000000000000002EC70B7701CB3F8420281E4083100000000100000003FC6080FE5BB83F3C pes header: 000001BD0C32808005210001C55B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111110101249210124921012492101249210124920000000000000000002EC70B7701CB3F8420281E4083100000000100000003FC6080FE5BB83F3C
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The function packet.PESHeader is supposed to return just the header for the PES, not the entire packet payload:
Example code:
Output:
The text was updated successfully, but these errors were encountered: