环境
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
解析效果
$ ./_build_ubuntu/read_h264_exe
NALU size, NALU start code size, NALU type = 0, 0 0 UNSPECIFIED
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 10421, 4 8 PPS
NALU size, NALU start code size, NALU type = 850, 4 1 SLICE
NALU size, NALU start code size, NALU type = 763, 4 1 SLICE
NALU size, NALU start code size, NALU type = 1009, 4 1 SLICE
NALU size, NALU start code size, NALU type = 943, 4 1 SLICE
NALU size, NALU start code size, NALU type = 1041, 4 1 SLICE
NALU size, NALU start code size, NALU type = 1025, 4 1 SLICE
NALU size, NALU start code size, NALU type = 2396, 4 1 SLICE
NALU size, NALU start code size, NALU type = 5908, 4 1 SLICE
NALU size, NALU start code size, NALU type = 14535, 4 1 SLICE
NALU size, NALU start code size, NALU type = 12596, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 19372, 4 8 PPS
NALU size, NALU start code size, NALU type = 12967, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26511, 4 1 SLICE
NALU size, NALU start code size, NALU type = 31298, 4 1 SLICE
NALU size, NALU start code size, NALU type = 29204, 4 1 SLICE
NALU size, NALU start code size, NALU type = 24559, 4 1 SLICE
NALU size, NALU start code size, NALU type = 36635, 4 1 SLICE
NALU size, NALU start code size, NALU type = 43539, 4 1 SLICE
NALU size, NALU start code size, NALU type = 46201, 4 1 SLICE
NALU size, NALU start code size, NALU type = 38031, 4 1 SLICE
NALU size, NALU start code size, NALU type = 45137, 4 1 SLICE
NALU size, NALU start code size, NALU type = 41244, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 51534, 4 8 PPS
NALU size, NALU start code size, NALU type = 66080, 4 1 SLICE
NALU size, NALU start code size, NALU type = 47781, 4 1 SLICE
NALU size, NALU start code size, NALU type = 40270, 4 1 SLICE
NALU size, NALU start code size, NALU type = 43693, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 80337, 4 8 PPS
NALU size, NALU start code size, NALU type = 64851, 4 1 SLICE
NALU size, NALU start code size, NALU type = 78177, 4 1 SLICE
NALU size, NALU start code size, NALU type = 65933, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 102882, 4 8 PPS
NALU size, NALU start code size, NALU type = 70007, 4 1 SLICE
NALU size, NALU start code size, NALU type = 114861, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 90670, 4 8 PPS
NALU size, NALU start code size, NALU type = 97522, 4 1 SLICE
NALU size, NALU start code size, NALU type = 142934, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 94327, 4 8 PPS
NALU size, NALU start code size, NALU type = 76530, 4 1 SLICE
NALU size, NALU start code size, NALU type = 68130, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 111638, 4 8 PPS
NALU size, NALU start code size, NALU type = 65960, 4 1 SLICE
NALU size, NALU start code size, NALU type = 120335, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 65597, 4 8 PPS
NALU size, NALU start code size, NALU type = 54175, 4 1 SLICE
NALU size, NALU start code size, NALU type = 48332, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 84107, 4 8 PPS
NALU size, NALU start code size, NALU type = 43399, 4 1 SLICE
NALU size, NALU start code size, NALU type = 39326, 4 1 SLICE
NALU size, NALU start code size, NALU type = 26, 4 7 SPS
NALU size, NALU start code size, NALU type = 94233, 4 8 PPS
NALU size, NALU start code size, NALU type = 35681, 4 1 SLICE
NALU size, NALU start code size, NALU type = 33116, 4 1 SLICE
NALU size, NALU start code size, NALU type = 30484, 4 1 SLICE
NALU size, NALU start code size, NALU type