Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-05-20 01:50:33 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2022-10-09 22:32:58 +0300
commitea9418debcf3673428e1daef4e9978ab0a663e8e (patch)
treef20c5546acee97687bb16db6c253613f8d451183
parentc7c63dead57e1648d52b49465ef28fdab36c8465 (diff)
avformat/rtsp: break on unknown protocols
This function needs more cleanup and it lacks error handling Fixes: use of uninitialized memory Fixes: CID700776 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 73c0fd27c5c53c42e5060fb3a0c1fc5708b6f670) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/rtsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 859defa592..664272c0ac 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -932,6 +932,8 @@ static void rtsp_parse_transport(AVFormatContext *s,
";,", &p);
}
th->transport = RTSP_TRANSPORT_RAW;
+ } else {
+ break;
}
if (!av_strcasecmp(lower_transport, "TCP"))
th->lower_transport = RTSP_LOWER_TRANSPORT_TCP;