* reader_init *********************************************************************** * **********************************************************************/
| 75 | * |
| 76 | **********************************************************************/ |
| 77 | static 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 | |
| 92 | static int hb_reader_open( hb_work_private_t * r ) |
| 93 | { |
no test coverage detected