| 426 | } |
| 427 | |
| 428 | static void nal_unit_parse_header(GetBitContext *gb, uint8_t *nal_type) |
| 429 | { |
| 430 | /* |
| 431 | * forbidden_zero_bit u(1) |
| 432 | * nuh_reserved_zero_bit u(1) |
| 433 | * nuh_layer_id u(6) |
| 434 | */ |
| 435 | skip_bits(gb, 8); |
| 436 | *nal_type = get_bits(gb, 5); |
| 437 | |
| 438 | /* |
| 439 | * nuh_temporal_id_plus1 u(3) |
| 440 | */ |
| 441 | skip_bits(gb, 3); |
| 442 | } |
| 443 | |
| 444 | static int vvcc_array_add_nal_unit(uint8_t *nal_buf, uint32_t nal_size, |
| 445 | uint8_t nal_type, int ps_array_completeness, |
no test coverage detected