diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 70c18941ca..970c7b75dc 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -946,6 +946,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;