From: Martin Storsjö Date: Wed, 11 Nov 2015 20:38:39 +0000 (+0200) Subject: rtmpproto: Include the full path as app when "slist=" is found X-Git-Tag: android-x86-7.1-r1~252^2~1663 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=64f8c439fd663fec4d57ac21af572d498fe21f7a;p=android-x86%2Fexternal-ffmpeg.git 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ö --- 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, '&');