diff options
author | Paul Orlyk <paul.orlyk@gmail.com> | 2024-01-15 22:37:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-01-16 01:34:57 +0100 |
commit | 57648ee091305283f3637cd37f884f80dac3f116 (patch) | |
tree | e3eb4072077d21cdd516ad09cc42eddc3d86c147 | |
parent | 0e20146db032cfd14524c038e5f963b993961095 (diff) |
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>
-rw-r--r-- | libavformat/rtsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 583f5338e8..61e24a5c7a 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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; } } |