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

Function chapter_end_pts

libhb/reader.c:77–90  ·  view source on GitHub ↗

* reader_init *********************************************************************** * **********************************************************************/

Source from the content-addressed store, hash-verified

75 *
76 **********************************************************************/
77static int64_t chapter_end_pts(hb_title_t * title, int chapter_end )
78{
79 hb_chapter_t * chapter;
80 int64_t duration;
81 int ii;
82
83 duration = 0;
84 for (ii = 0; ii < chapter_end; ii++)
85 {
86 chapter = hb_list_item(title->list_chapter, ii);
87 duration += chapter->duration;
88 }
89 return duration;
90}
91
92static int hb_reader_open( hb_work_private_t * r )
93{

Callers 2

hb_reader_openFunction · 0.85
reader_initFunction · 0.85

Calls 1

hb_list_itemFunction · 0.85

Tested by

no test coverage detected