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

Function http_read_stream_all

libavformat/http.c:1905–1915  ·  view source on GitHub ↗

Like http_read_stream(), but no short reads. Assumes partial reads are an error.

Source from the content-addressed store, hash-verified

1903// Like http_read_stream(), but no short reads.
1904// Assumes partial reads are an error.
1905static int http_read_stream_all(URLContext *h, uint8_t *buf, int size)
1906{
1907 int pos = 0;
1908 while (pos < size) {
1909 int len = http_read_stream(h, buf + pos, size - pos);
1910 if (len < 0)
1911 return len;
1912 pos += len;
1913 }
1914 return pos;
1915}
1916
1917static void update_metadata(URLContext *h, char *data)
1918{

Callers 1

store_icyFunction · 0.85

Calls 1

http_read_streamFunction · 0.85

Tested by

no test coverage detected