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

Function setNextPts

libhb/sync.c:446–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446static void setNextPts( sync_common_t * common )
447{
448 int ii;
449
450 for (ii = 0; ii < common->stream_count; ii++)
451 {
452 sync_stream_t * stream = &common->streams[ii];
453 hb_buffer_t * buf = hb_list_item(stream->in_queue, 0);
454 if (buf != NULL)
455 {
456 stream->next_pts = buf->s.start;
457 }
458 else
459 {
460 stream->next_pts = (int64_t)AV_NOPTS_VALUE;
461 }
462 }
463}
464
465static void alignStream( sync_common_t * common, sync_stream_t * stream,
466 int64_t pts )

Callers 1

OutputBufferFunction · 0.85

Calls 1

hb_list_itemFunction · 0.85

Tested by

no test coverage detected