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

Function av_reallocp_array

libavutil/mem.c:225–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
226{
227 void *val;
228
229 memcpy(&val, ptr, sizeof(val));
230 val = av_realloc_f(val, nmemb, size);
231 memcpy(ptr, &val, sizeof(val));
232 if (!val && nmemb && size)
233 return AVERROR(ENOMEM);
234
235 return 0;
236}
237
238void av_free(void *ptr)
239{

Callers 15

dshow_cycle_devicesFunction · 0.85
vvcc_array_add_nal_unitFunction · 0.85
mov_build_indexFunction · 0.85
mov_read_trexFunction · 0.85
hvcc_array_add_nal_unitFunction · 0.85
add_tracked_methodFunction · 0.85
mxf_write_partitionFunction · 0.85
mxf_write_packetFunction · 0.85
nut_write_packetFunction · 0.85
update_indexFunction · 0.85
parse_strkFunction · 0.85
add_fragmentFunction · 0.85

Calls 1

av_realloc_fFunction · 0.85

Tested by

no test coverage detected