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

Function hb_chapter_copy

libhb/common.c:5629–5643  ·  view source on GitHub ↗

* hb_chapter_copy ********************************************************************** * *********************************************************************/

Source from the content-addressed store, hash-verified

5627 *
5628 *********************************************************************/
5629hb_chapter_t *hb_chapter_copy(const hb_chapter_t *src)
5630{
5631 hb_chapter_t *chap = NULL;
5632
5633 if ( src )
5634 {
5635 chap = calloc( 1, sizeof(*chap) );
5636 memcpy( chap, src, sizeof(*chap) );
5637 if ( src->title )
5638 {
5639 chap->title = strdup( src->title );
5640 }
5641 }
5642 return chap;
5643}
5644
5645/**********************************************************************
5646 * hb_chapter_list_copy

Callers 1

hb_chapter_list_copyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected