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

Function av_buffer_ref

libavutil/buffer.c:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103AVBufferRef *av_buffer_ref(const AVBufferRef *buf)
104{
105 AVBufferRef *ret = av_mallocz(sizeof(*ret));
106
107 if (!ret)
108 return NULL;
109
110 *ret = *buf;
111
112 atomic_fetch_add_explicit(&buf->buffer->refcount, 1, memory_order_relaxed);
113
114 return ret;
115}
116
117static void buffer_replace(AVBufferRef **dst, AVBufferRef **src)
118{

Callers 15

kmsgrab_read_packetFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
matroska_parse_frameFunction · 0.85
parse_packetFunction · 0.85
read_packet_vsFunction · 0.85
av_write_frameFunction · 0.85
frame_copy_propsFunction · 0.85
av_frame_refFunction · 0.85
vulkan_export_to_cudaFunction · 0.85
ff_vk_exec_add_dep_bufFunction · 0.85
ff_vk_exec_add_dep_frameFunction · 0.85
ff_vk_host_map_bufferFunction · 0.85

Calls 1

av_malloczFunction · 0.70

Tested by 1