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

Function compute_dts_offset

libhb/encavcodec.c:1220–1230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1218}
1219
1220static void compute_dts_offset( hb_work_private_t * pv, hb_buffer_t * buf )
1221{
1222 if ( pv->job->areBframes )
1223 {
1224 if ( ( pv->frameno_in ) == pv->job->areBframes )
1225 {
1226 pv->dts_delay = buf->s.start;
1227 pv->job->init_delay = pv->dts_delay;
1228 }
1229 }
1230}
1231
1232// Generate DTS by rearranging PTS in this sequence:
1233// pts0 - delay, pts1 - delay, pts2 - delay, pts1, pts2, pts3...

Callers 1

EncodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected