mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02: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>
(cherry picked from commit ea9e85e549)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
+2
-1
@@ -1813,7 +1813,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