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

Function http_getc

libavformat/http.c:847–862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847static int http_getc(HTTPContext *s)
848{
849 int len;
850 if (s->buf_ptr >= s->buf_end) {
851 len = ffurl_read(s->hd, s->buffer, BUFFER_SIZE);
852 if (len < 0) {
853 return len;
854 } else if (len == 0) {
855 return AVERROR_EOF;
856 } else {
857 s->buf_ptr = s->buffer;
858 s->buf_end = s->buffer + len;
859 }
860 }
861 return *s->buf_ptr++;
862}
863
864static int http_get_line(HTTPContext *s, char *line, int line_size)
865{

Callers 1

http_get_lineFunction · 0.85

Calls 1

ffurl_readFunction · 0.85

Tested by

no test coverage detected