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;