diff mbox series

[FFmpeg-devel,v2,1/2] avformat/rtsp: Support mode field of Transport header being sent in upper case

Message ID 775df95f-1e9a-431a-8dc9-33a1f4f651a5@gmail.com
State New
Headers show
Series [FFmpeg-devel,v2,1/2] avformat/rtsp: Support mode field of Transport header being sent in upper case | expand

Checks

Context Check Description
andriy/configure_x86 warning Failed to apply patch
yinshiyou/configure_loongarch64 warning Failed to apply patch

Commit Message

Paul Orlyk Jan. 15, 2024, 8:37 p.m. UTC
Fixes server compatibility issues with rtspclientsink GStreamer plugin

Signed-off-by: Paul Orlyk <paul.orlyk@gmail.com>
---
  libavformat/rtsp.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Michael Niedermayer Jan. 16, 2024, 12:05 a.m. UTC | #1
On Mon, Jan 15, 2024 at 10:37:09PM +0200, Paul Orlyk wrote:
> Fixes server compatibility issues with rtspclientsink GStreamer plugin
> 
> Signed-off-by: Paul Orlyk <paul.orlyk@gmail.com>
> ---
>  libavformat/rtsp.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

will apply

thx

[...]
diff mbox series

Patch

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