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

Function hb_bd_seek

libhb/bd.c:837–845  ·  view source on GitHub ↗

* hb_bd_seek *********************************************************************** * **********************************************************************/

Source from the content-addressed store, hash-verified

835 *
836 **********************************************************************/
837int hb_bd_seek( hb_bd_t * d, float f )
838{
839 uint64_t pos = f * d->duration;
840
841 bd_seek_time(d->bd, pos);
842 d->next_chap = bd_get_current_chapter( d->bd ) + 1;
843 hb_ts_stream_reset(d->stream);
844 return 1;
845}
846
847int hb_bd_seek_pts( hb_bd_t * d, uint64_t pts )
848{

Callers 2

hb_reader_openFunction · 0.85
DecodePreviewsFunction · 0.85

Calls 1

hb_ts_stream_resetFunction · 0.85

Tested by

no test coverage detected