diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-05-20 00:50:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-07-12 21:55:22 +0200 |
commit | 73c0fd27c5c53c42e5060fb3a0c1fc5708b6f670 (patch) | |
tree | dd0c86d227a8c07d27220563777fc1bfba727042 /libavformat/rtsp.c | |
parent | 9c5250a5612d4b32d79108de0c03945b2017963e (diff) | |
download | ffmpeg-73c0fd27c5c53c42e5060fb3a0c1fc5708b6f670.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>
Diffstat (limited to 'libavformat/rtsp.c')
-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 88e9ef5226..f948f1d395 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -949,6 +949,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; |