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

Function flush_buffer

libavformat/aviobuf.c:168–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168static void flush_buffer(AVIOContext *s)
169{
170 s->buf_ptr_max = FFMAX(s->buf_ptr, s->buf_ptr_max);
171 if (s->write_flag && s->buf_ptr_max > s->buffer) {
172 writeout(s, s->buffer, s->buf_ptr_max - s->buffer);
173 if (s->update_checksum) {
174 s->checksum = s->update_checksum(s->checksum, s->checksum_ptr,
175 s->buf_ptr_max - s->checksum_ptr);
176 s->checksum_ptr = s->buffer;
177 }
178 }
179 s->buf_ptr = s->buf_ptr_max = s->buffer;
180 if (!s->write_flag)
181 s->buf_end = s->buffer;
182}
183
184void avio_w8(AVIOContext *s, int b)
185{

Callers 5

avio_w8Function · 0.70
ffio_fillFunction · 0.70
avio_writeFunction · 0.70
avio_flushFunction · 0.70
avio_seekFunction · 0.70

Calls 1

writeoutFunction · 0.85

Tested by

no test coverage detected