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

Function hb_buffer_copy

libhb/fifo.c:803–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801}
802
803int hb_buffer_copy(hb_buffer_t * dst, const hb_buffer_t * src)
804{
805 if (src == NULL || dst == NULL)
806 return -1;
807
808 if ( dst->size < src->size )
809 return -1;
810
811 memcpy( dst->data, src->data, src->size );
812 dst->f = src->f;
813 hb_buffer_copy_props(dst, src);
814 if (dst->s.type == FRAME_BUF)
815 hb_buffer_init_planes(dst);
816
817 return 0;
818}
819
820void hb_buffer_init_planes(hb_buffer_t * b)
821{

Callers 1

FUNC(filter)Function · 0.85

Calls 2

hb_buffer_copy_propsFunction · 0.85
hb_buffer_init_planesFunction · 0.85

Tested by

no test coverage detected