diff options
author | Michael Niedermayer <[email protected]> | 2022-05-20 00:50:33 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2022-09-25 13:51:45 +0200 |
commit | d3e208f5f5ab43fe923b7722b3d737edecb3da60 (patch) | |
tree | 12e8424ef177d22a8951d018dc997a8bdb6d6d8c | |
parent | 93f5b347e62a3a5c1e68c1c8145788628276be6b (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 <[email protected]>
(cherry picked from commit 73c0fd27c5c53c42e5060fb3a0c1fc5708b6f670)
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 25bdf475b3..fae3a371e0 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -952,6 +952,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; |