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

Function avio_alloc_context

libavformat/aviobuf.c:109–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109AVIOContext *avio_alloc_context(
110 unsigned char *buffer,
111 int buffer_size,
112 int write_flag,
113 void *opaque,
114 int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
115 int (*write_packet)(void *opaque, const uint8_t *buf, int buf_size),
116 int64_t (*seek)(void *opaque, int64_t offset, int whence))
117{
118 FFIOContext *s = av_malloc(sizeof(*s));
119 if (!s)
120 return NULL;
121 ffio_init_context(s, buffer, buffer_size, write_flag, opaque,
122 read_packet, write_packet, seek);
123 return &s->pub;
124}
125
126void avio_context_free(AVIOContext **ps)
127{

Callers 15

LLVMFuzzerTestOneInputFunction · 0.85
ffio_fdopenFunction · 0.85
read_gab2_subFunction · 0.85
open_null_ctxFunction · 0.85
wtvfile_open_sectorFunction · 0.85
swf_read_headerFunction · 0.85
parse_answerFunction · 0.85
ice_create_requestFunction · 0.85
ice_create_responseFunction · 0.85
create_rtp_muxerFunction · 0.85
ism_write_headerFunction · 0.85
load_sb_blockFunction · 0.85

Calls 2

ffio_init_contextFunction · 0.85
av_mallocFunction · 0.50

Tested by 1

init_fpsFunction · 0.68