mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-30 15:00:29 +00:00
avformat/hlsenc: compare without the last directory separator in get_relative_url
fix ticket: 8461
there is no problem before commit 75aea52a10
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
b5dba152ef
commit
bc0bedf3c9
@ -1234,7 +1234,7 @@ static const char* get_relative_url(const char *master_url, const char *media_ur
|
||||
if (!p) p = strrchr(master_url, '\\');
|
||||
|
||||
if (p) {
|
||||
base_len = p + 1 - master_url;
|
||||
base_len = p - master_url;
|
||||
if (av_strncasecmp(master_url, media_url, base_len)) {
|
||||
av_log(NULL, AV_LOG_WARNING, "Unable to find relative url\n");
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user