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

Function ff_parse_pes_pts

libavformat/mpeg.h:69–73  ·  view source on GitHub ↗

* Parse MPEG-PES five-byte timestamp */

Source from the content-addressed store, hash-verified

67 * Parse MPEG-PES five-byte timestamp
68 */
69static inline int64_t ff_parse_pes_pts(const uint8_t *buf) {
70 return (int64_t)(*buf & 0x0e) << 29 |
71 (AV_RB16(buf+1) >> 1) << 15 |
72 AV_RB16(buf+3) >> 1;
73}
74
75#endif /* AVFORMAT_MPEG_H */

Callers 6

read_part_of_packetFunction · 0.85
demux_videoFunction · 0.85
check_sync_pesFunction · 0.85
demux_audioFunction · 0.85
mpegts_push_dataFunction · 0.85
get_ptsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected