MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / get16

Function get16

libavformat/mpegts.c:695–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695static 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 */
710static char *getstr8(const uint8_t **pp, const uint8_t *p_end)

Callers 7

parse_section_headerFunction · 0.85
pmt_cbFunction · 0.85
pat_cbFunction · 0.85
sdt_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected