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-15 22:37:09 +02:00 committed by Michael Niedermayer
parent 0e20146db0
commit 57648ee091
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

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;
}
}