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

Function get_pts

libavformat/mpeg.c:155–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155static int64_t get_pts(AVIOContext *pb, int c)
156{
157 uint8_t buf[5];
158 int ret;
159
160 buf[0] = c < 0 ? avio_r8(pb) : c;
161 ret = avio_read(pb, buf + 1, 4);
162 if (ret < 4)
163 return AV_NOPTS_VALUE;
164
165 return ff_parse_pes_pts(buf);
166}
167
168static int find_next_start_code(AVIOContext *pb, int *size_ptr,
169 int32_t *header_state)

Callers 1

mpegps_read_pes_headerFunction · 0.70

Calls 3

avio_r8Function · 0.85
avio_readFunction · 0.85
ff_parse_pes_ptsFunction · 0.85

Tested by

no test coverage detected