mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avformat/rtsp: Explicitly check protocol
Fixes: redirect to non rtsp protocol Fixes: YWH-PGM40646-41 Found-by: BapToutatis Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1919,7 +1919,8 @@ redirect:
|
||||
} else if (!strcmp(proto, "satip")) {
|
||||
av_strlcpy(proto, "rtsp", sizeof(proto));
|
||||
rt->server_type = RTSP_SERVER_SATIP;
|
||||
}
|
||||
} else if (strcmp(proto, "rtsp"))
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
if (*auth) {
|
||||
av_strlcpy(rt->auth, auth, sizeof(rt->auth));
|
||||
|
||||
Reference in New Issue
Block a user