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>
release/7.0
Paul Orlyk 10 months ago committed by Michael Niedermayer
parent 0e20146db0
commit 57648ee091
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 4
      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;
}
}

Loading…
Cancel
Save