diff options
author | Martin Storsjö <martin@martin.st> | 2015-11-11 22:38:39 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-12-13 23:23:06 +0200 |
commit | 64f8c439fd663fec4d57ac21af572d498fe21f7a (patch) | |
tree | 17129a4f0d5431f1bc359ec9057276e038a6654a | |
parent | 9f0b6e6827e21e3477abe1199dc2728e30b8c061 (diff) | |
download | ffmpeg-64f8c439fd663fec4d57ac21af572d498fe21f7a.tar.gz |
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: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavformat/rtmpproto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 77a801d11c..4ed81084e4 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -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, '&'); |