Message ID | 20190130155717.29166-1-yannick.poirier@inverto.tv |
---|---|
State | New |
Headers | show |
2019-01-30 16:57 GMT+01:00, Yannick Poirier <yannick.poirier@inverto.tv>: > --- > 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")) Is there an rfc or similar that supports this? In any case, the commit message can be improved. Carl Eugen
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;