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

Function parse_location

libavformat/http.c:903–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901}
902
903static int parse_location(HTTPContext *s, const char *p)
904{
905 char redirected_location[MAX_URL_SIZE];
906 ff_make_absolute_url(redirected_location, sizeof(redirected_location),
907 s->location, p);
908 av_freep(&s->new_location);
909 s->new_location = av_strdup(redirected_location);
910 if (!s->new_location)
911 return AVERROR(ENOMEM);
912 return 0;
913}
914
915/* "bytes $from-$to/$document_size" */
916static void parse_content_range(URLContext *h, const char *p)

Callers 1

process_lineFunction · 0.85

Calls 3

ff_make_absolute_urlFunction · 0.85
av_freepFunction · 0.85
av_strdupFunction · 0.85

Tested by

no test coverage detected