changeset 4667:7d88e3f6943d libavformat

rtpmap is case-insensitive, see comment from Luca in "[PATCH] rtsp.c: keep-alive" thread.
author rbultje
date Sat, 07 Mar 2009 15:20:55 +0000
parents bf7e0b55d9ec
children 1f87eacc3c32
files rtsp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Fri Mar 06 21:19:16 2009 +0000
+++ b/rtsp.c	Sat Mar 07 15:20:55 2009 +0000
@@ -124,7 +124,7 @@
     if (payload_type >= RTP_PT_PRIVATE) {
         RTPDynamicProtocolHandler *handler= RTPFirstDynamicPayloadHandler;
         while(handler) {
-            if (!strcmp(buf, handler->enc_name) && (codec->codec_type == handler->codec_type)) {
+            if (!strcasecmp(buf, handler->enc_name) && (codec->codec_type == handler->codec_type)) {
                 codec->codec_id = handler->codec_id;
                 rtsp_st->dynamic_handler= handler;
                 if(handler->open) {