MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / parse_pes_timestamp

Function parse_pes_timestamp

libhb/stream.c:3010–3021  ·  view source on GitHub ↗

convert a PES PTS or DTS to an int64

Source from the content-addressed store, hash-verified

3008
3009// convert a PES PTS or DTS to an int64
3010static int64_t parse_pes_timestamp( bitbuf_t *bb )
3011{
3012 int64_t ts;
3013
3014 ts = ( (uint64_t) bits_get(bb, 3) << 30 ) +
3015 bits_skip(bb, 1) +
3016 ( bits_get(bb, 15) << 15 ) +
3017 bits_skip(bb, 1) +
3018 bits_get(bb, 15);
3019 bits_skip(bb, 1);
3020 return ts;
3021}
3022
3023static int parse_pes_header(
3024 hb_stream_t *stream,

Callers 2

parse_pes_headerFunction · 0.85
parse_pack_headerFunction · 0.85

Calls 2

bits_getFunction · 0.85
bits_skipFunction · 0.85

Tested by

no test coverage detected