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

Function http_getc

libavformat/http.c:146–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 return ret;
145}
146static int http_getc(HTTPContext *s)
147{
148 int len;
149 if (s->buf_ptr >= s->buf_end) {
150 len = url_read(s->hd, s->buffer, BUFFER_SIZE);
151 if (len < 0) {
152 return AVERROR(EIO);
153 } else if (len == 0) {
154 return -1;
155 } else {
156 s->buf_ptr = s->buffer;
157 s->buf_end = s->buffer + len;
158 }
159 }
160 return *s->buf_ptr++;
161}
162
163static int http_get_line(HTTPContext *s, char *line, int line_size)
164{

Callers 1

http_get_lineFunction · 0.85

Calls 1

url_readFunction · 0.85

Tested by

no test coverage detected