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

Function av_reallocp

libavutil/mem.c:188–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188int av_reallocp(void *ptr, size_t size)
189{
190 void *val;
191
192 if (!size) {
193 av_freep(ptr);
194 return 0;
195 }
196
197 memcpy(&val, ptr, sizeof(val));
198 val = av_realloc(val, size);
199
200 if (!val) {
201 av_freep(ptr);
202 return AVERROR(ENOMEM);
203 }
204
205 memcpy(ptr, &val, sizeof(val));
206 return 0;
207}
208
209void *av_malloc_array(size_t nmemb, size_t size)
210{

Callers 15

mov_realloc_extradataFunction · 0.85
bmv_read_packetFunction · 0.85
dyn_buf_writeFunction · 0.85
get_tcp_server_responseFunction · 0.85
http_openFunction · 0.85
parse_icyFunction · 0.85
fixup_vorbis_headersFunction · 0.85
vorbis_packetFunction · 0.85
avi_read_headerFunction · 0.85
set_segment_filenameFunction · 0.85
append_flv_dataFunction · 0.85
handle_metadataFunction · 0.85

Calls 2

av_freepFunction · 0.85
av_reallocFunction · 0.70

Tested by

no test coverage detected