Browse Source

url: Handle relative urls being just a new query string

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n1.1
Duncan Salerno Martin Storsjö 12 years ago
parent
commit
eea003814c
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavformat/utils.c

+ 6
- 0
libavformat/utils.c View File

@@ -3417,6 +3417,12 @@ void ff_make_absolute_url(char *buf, int size, const char *base,
if (path_query != NULL)
*path_query = '\0';

/* Is relative path just a new query part? */
if (rel[0] == '?') {
av_strlcat(buf, rel, size);
return;
}

/* Remove the file name from the base url */
sep = strrchr(buf, '/');
if (sep)


Loading…
Cancel
Save