Browse Source

avformat/hlsenc: return media_url directly if failed to get seperator

Fix ticket: 8606
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
tags/n4.3
Limin Wang Steven Liu 5 years ago
parent
commit
df08db0711
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/hlsenc.c

+ 2
- 0
libavformat/hlsenc.c View File

@@ -1251,6 +1251,8 @@ static const char* get_relative_url(const char *master_url, const char *media_ur
av_log(NULL, AV_LOG_WARNING, "Unable to find relative url\n"); av_log(NULL, AV_LOG_WARNING, "Unable to find relative url\n");
return NULL; return NULL;
} }
} else {
return media_url;
} }


return media_url + base_len + 1; return media_url + base_len + 1;


Loading…
Cancel
Save