[FFmpeg-cvslog] r17862 - trunk/libavformat/rtsp.c

rbultje subversion
Sat Mar 7 16:20:56 CET 2009


Author: rbultje
Date: Sat Mar  7 16:20:55 2009
New Revision: 17862

Log:
rtpmap is case-insensitive, see comment from Luca in "[PATCH] rtsp.c:
keep-alive" thread.

Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Fri Mar  6 23:37:21 2009	(r17861)
+++ trunk/libavformat/rtsp.c	Sat Mar  7 16:20:55 2009	(r17862)
@@ -124,7 +124,7 @@ static int sdp_parse_rtpmap(AVCodecConte
     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) {




More information about the ffmpeg-cvslog mailing list