MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / allocate_array_elem

Function allocate_array_elem

fftools/cmdutils.c:1540–1551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1538}
1539
1540void *allocate_array_elem(void *ptr, size_t elem_size, int *nb_elems)
1541{
1542 void *new_elem;
1543
1544 new_elem = av_mallocz(elem_size);
1545 if (!new_elem)
1546 return NULL;
1547 if (av_dynarray_add_nofree(ptr, nb_elems, new_elem) < 0)
1548 av_freep(&new_elem);
1549
1550 return new_elem;
1551}
1552
1553double get_rotation(const int32_t *displaymatrix)
1554{

Callers 7

ofilter_allocFunction · 0.85
ifilter_allocFunction · 0.85
mux_stream_allocFunction · 0.85
mux_allocFunction · 0.85
demux_stream_allocFunction · 0.85
demux_stream_group_allocFunction · 0.85
demux_allocFunction · 0.85

Calls 3

av_dynarray_add_nofreeFunction · 0.85
av_freepFunction · 0.85
av_malloczFunction · 0.50

Tested by

no test coverage detected