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

Function pes_timestamp

libhb/stream.c:4686–4696  ·  view source on GitHub ↗

convert a PES PTS or DTS to an int64

Source from the content-addressed store, hash-verified

4684
4685// convert a PES PTS or DTS to an int64
4686static int64_t pes_timestamp( const uint8_t *buf )
4687{
4688 int64_t ts;
4689
4690 ts = ( (uint64_t) ( buf[0] & 0x0e ) << 29 ) +
4691 ( buf[1] << 22 ) +
4692 ( ( buf[2] >> 1 ) << 15 ) +
4693 ( buf[3] << 7 ) +
4694 ( buf[4] >> 1 );
4695 return ts;
4696}
4697
4698static int stream_kind_to_buf_type(int kind)
4699{

Callers 1

hb_ts_decode_pktFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected