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

Function ring_write

libavformat/async.c:145–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static int ring_write(RingBuffer *ring, URLContext *h, size_t size)
146{
147 int ret;
148
149 av_assert2(size <= ring_space(ring));
150 ret = av_fifo_write_from_cb(ring->fifo, wrapped_url_read, h, &size);
151 if (ret < 0)
152 return ret;
153
154 return size;
155}
156
157static int ring_size_of_read_back(RingBuffer *ring)
158{

Callers 1

async_buffer_taskFunction · 0.85

Calls 2

ring_spaceFunction · 0.85
av_fifo_write_from_cbFunction · 0.85

Tested by

no test coverage detected