summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-05-20 00:50:33 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2022-10-21 22:19:37 +0200
commiteedbc82ea9442f0fc159a2efa27917f0d4b79922 (patch)
tree37a1081032254400c8452c15f66ccc4c0c6b6e9b /libavformat/rtsp.c
parent2e8529d28258c91e79f13756bbe8009bc44ff2ae (diff)
downloadffmpeg-eedbc82ea9442f0fc159a2efa27917f0d4b79922.tar.gz
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>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 8c8381c055..e179aa397c 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -923,6 +923,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;