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

Function av_dynarray_add_nofree

libavutil/mem.c:315–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315int av_dynarray_add_nofree(void *tab_ptr, int *nb_ptr, void *elem)
316{
317 void **tab;
318 memcpy(&tab, tab_ptr, sizeof(tab));
319
320 FF_DYNARRAY_ADD(INT_MAX, sizeof(*tab), tab, *nb_ptr, {
321 tab[*nb_ptr] = elem;
322 memcpy(tab_ptr, &tab, sizeof(tab));
323 }, {
324 return AVERROR(ENOMEM);
325 });
326 return 0;
327}
328
329void av_dynarray_add(void *tab_ptr, int *nb_ptr, void *elem)
330{

Callers 15

ff_alsa_get_device_listFunction · 0.85
v4l2_get_device_listFunction · 0.85
ff_decklink_list_devicesFunction · 0.85
ff_fbdev_get_device_listFunction · 0.85
tee_write_headerFunction · 0.85
av_new_programFunction · 0.85
avpriv_new_chapterFunction · 0.85
mpegts_add_serviceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected