avformat/rtsp: Support mode field of Transport header being sent in upper case

Fixes server compatibility issues with rtspclientsink GStreamer plugin

Signed-off-by: Paul Orlyk <paul.orlyk@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Paul Orlyk
2024-01-16 01:34:57 +01:00
committed by Michael Niedermayer
parent 0e20146db0
commit 57648ee091
+2 -2
View File
@@ -1012,8 +1012,8 @@ static void rtsp_parse_transport(AVFormatContext *s,
if (*p == '=') {
p++;
get_word_sep(buf, sizeof(buf), ";, ", &p);
if (!strcmp(buf, "record") ||
!strcmp(buf, "receive"))
if (!av_strcasecmp(buf, "record") ||
!av_strcasecmp(buf, "receive"))
th->mode_record = 1;
}
}