mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-07 18:29:59 +00:00
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 73c0fd27c5)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c7c63dead5
commit
ea9418debc
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue