[FFmpeg-devel] [PATCH] 'UDP' protocol (in upper case) in SDP m= section was parsed correctly

Yannick Poirier yannick.poirier at inverto.tv
Wed Jan 30 17:57:17 EET 2019


---
 libavformat/rtsp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ceb770a3a4..4899e4e790 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -480,7 +480,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,
         rtsp_st->sdp_port = atoi(buf1);
 
         get_word(buf1, sizeof(buf1), &p); /* protocol */
-        if (!strcmp(buf1, "udp"))
+        if (!av_strcasecmp(buf1, "udp"))
             rt->transport = RTSP_TRANSPORT_RAW;
         else if (strstr(buf1, "/AVPF") || strstr(buf1, "/SAVPF"))
             rtsp_st->feedback = 1;
-- 
2.20.1



More information about the ffmpeg-devel mailing list