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

Function av_buffer_alloc

libavutil/buffer.c:77–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77AVBufferRef *av_buffer_alloc(size_t size)
78{
79 AVBufferRef *ret = NULL;
80 uint8_t *data = NULL;
81
82 data = av_malloc(size);
83 if (!data)
84 return NULL;
85
86 ret = av_buffer_create(data, size, av_buffer_default_free, NULL, 0);
87 if (!ret)
88 av_freep(&data);
89
90 return ret;
91}
92
93AVBufferRef *av_buffer_allocz(size_t size)
94{

Callers 15

fuzz_video_get_bufferFunction · 0.85
mov_parse_exif_itemFunction · 0.85
jpegxl_anim_read_headerFunction · 0.85
asf_parse_packetFunction · 0.85
ff_flac_parse_pictureFunction · 0.85
read_apicFunction · 0.85
get_video_bufferFunction · 0.85
get_audio_bufferFunction · 0.85
av_frame_new_side_dataFunction · 0.85
av_buffer_alloczFunction · 0.85
av_buffer_make_writableFunction · 0.85
av_frame_side_data_newFunction · 0.85

Calls 3

av_buffer_createFunction · 0.85
av_freepFunction · 0.85
av_mallocFunction · 0.70

Tested by

no test coverage detected