rtpmap is case-insensitive, see comment from Luca in "[PATCH] rtsp.c:
authorRonald S. Bultje <rsbultje@gmail.com>
Sat, 7 Mar 2009 15:20:55 +0000 (15:20 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Sat, 7 Mar 2009 15:20:55 +0000 (15:20 +0000)
keep-alive" thread.

Originally committed as revision 17862 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c

index bcc710941ed5a83a8c5464d7e0ca95b9af2b507e..6806736ed24c5b43d93415db352014c5bea0cc34 100644 (file)
@@ -124,7 +124,7 @@ static int sdp_parse_rtpmap(AVCodecContext *codec, RTSPStream *rtsp_st, int payl
     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) {