| 693 | } |
| 694 | |
| 695 | static inline int get16(const uint8_t **pp, const uint8_t *p_end) |
| 696 | { |
| 697 | const uint8_t *p; |
| 698 | int c; |
| 699 | |
| 700 | p = *pp; |
| 701 | if (1 >= p_end - p) |
| 702 | return AVERROR_INVALIDDATA; |
| 703 | c = AV_RB16(p); |
| 704 | p += 2; |
| 705 | *pp = p; |
| 706 | return c; |
| 707 | } |
| 708 | |
| 709 | /* read and allocate a DVB string preceded by its length */ |
| 710 | static char *getstr8(const uint8_t **pp, const uint8_t *p_end) |
no outgoing calls
no test coverage detected