Simple parser with a lot of hard-coded values. Sample pcap file with H.265 video stream:
https://wiki.wireshark.org/SampleCaptures?action=AttachFile&do=get&target=1920x1080_H.265.pcapng
Note: you must covert it to .pcap file (not .pcapng) using Wireshark
-
How to read a PCap file from Wireshark with C++
https://www.rhyous.com/2011/11/13/how-to-read-a-pcap-file-from-wireshark-with-c/
-
H.265 payload structure (RFC-7798)