X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtmpproto.c;h=bd1c38a1610ca71b381532aa6e915ce2178ea1cb;hb=0b40e290e3cc561a92abe09e114b82cbde2eda29;hp=f0c1422ccf0346de72d02c36ecd8c59972ea3f1a;hpb=bc66451e5e903698ee0500faf04c1214f3dd157f;p=ffmpeg diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index f0c1422ccf0..bd1c38a1610 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -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, '&');