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

Function avio_write

libavformat/aviobuf.c:206–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void avio_write(AVIOContext *s, const unsigned char *buf, int size)
207{
208 if (size <= 0)
209 return;
210 if (s->direct && !s->update_checksum) {
211 avio_flush(s);
212 writeout(s, buf, size);
213 return;
214 }
215 do {
216 int len = FFMIN(s->buf_end - s->buf_ptr, size);
217 memcpy(s->buf_ptr, buf, len);
218 s->buf_ptr += len;
219
220 if (s->buf_ptr >= s->buf_end)
221 flush_buffer(s);
222
223 buf += len;
224 size -= len;
225 } while (size > 0);
226}
227
228void avio_flush(AVIOContext *s)
229{

Callers 15

copy_tagFunction · 0.85
get_video_private_dataFunction · 0.85
mainFunction · 0.85
ff_format_shift_dataFunction · 0.85
a64_write_headerFunction · 0.85
alp_write_headerFunction · 0.85
vvcc_writeFunction · 0.85
ff_vvc_annexb2mp4Function · 0.85
ff_isom_write_vvccFunction · 0.85
roq_write_headerFunction · 0.85
ff_put_wav_headerFunction · 0.85
ff_put_bmp_headerFunction · 0.85

Calls 3

avio_flushFunction · 0.85
writeoutFunction · 0.85
flush_bufferFunction · 0.70

Tested by 2

vc1test_write_headerFunction · 0.68
vc1test_write_packetFunction · 0.68