提交 64f8c439 编写于 作者: M Martin Storsjö

rtmpproto: Include the full path as app when "slist=" is found

This matches what librtmp does. This fixes automatic url parsing of
crunchyroll urls.
Signed-off-by: NMartin Storsjö <martin@martin.st>
上级 9f0b6e68
......@@ -2674,8 +2674,8 @@ reconnect:
qmark = strchr(path, '?');
if (qmark && strstr(qmark, "slist=")) {
char* amp;
// After slist we have the playpath, before the params, the app
av_strlcpy(rt->app, path + 1, FFMIN(qmark - path, APP_MAX_LENGTH));
// After slist we have the playpath, the full path is used as app
av_strlcpy(rt->app, path + 1, APP_MAX_LENGTH);
fname = strstr(path, "slist=") + 6;
// Strip any further query parameters from fname
amp = strchr(fname, '&');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册