]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtmpproto.c
Merge commit '26ec75aec3576daea691dee53a78ec67c0dc4040'
[ffmpeg] / libavformat / rtmpproto.c
index f0c1422ccf0346de72d02c36ecd8c59972ea3f1a..bd1c38a1610ca71b381532aa6e915ce2178ea1cb 100644 (file)
@@ -2681,8 +2681,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, '&');