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

Function http_read

libavformat/http.c:1983–1997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1981}
1982
1983static int http_read(URLContext *h, uint8_t *buf, int size)
1984{
1985 HTTPContext *s = h->priv_data;
1986
1987 if (s->icy_metaint > 0) {
1988 size = store_icy(h, size);
1989 if (size < 0)
1990 return size;
1991 }
1992
1993 size = http_read_stream(h, buf, size);
1994 if (size > 0)
1995 s->icy_data_read += size;
1996 return size;
1997}
1998
1999/* used only when posting data */
2000static int http_write(URLContext *h, const uint8_t *buf, int size)

Callers

nothing calls this directly

Calls 2

store_icyFunction · 0.85
http_read_streamFunction · 0.85

Tested by

no test coverage detected