comparison rtsp.c @ 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 5910b77d9502
children 51899c07a4f1
comparison
equal deleted inserted replaced
4666:bf7e0b55d9ec 4667:7d88e3f6943d
122 see if we can handle this kind of payload */ 122 see if we can handle this kind of payload */
123 get_word_sep(buf, sizeof(buf), "/", &p); 123 get_word_sep(buf, sizeof(buf), "/", &p);
124 if (payload_type >= RTP_PT_PRIVATE) { 124 if (payload_type >= RTP_PT_PRIVATE) {
125 RTPDynamicProtocolHandler *handler= RTPFirstDynamicPayloadHandler; 125 RTPDynamicProtocolHandler *handler= RTPFirstDynamicPayloadHandler;
126 while(handler) { 126 while(handler) {
127 if (!strcmp(buf, handler->enc_name) && (codec->codec_type == handler->codec_type)) { 127 if (!strcasecmp(buf, handler->enc_name) && (codec->codec_type == handler->codec_type)) {
128 codec->codec_id = handler->codec_id; 128 codec->codec_id = handler->codec_id;
129 rtsp_st->dynamic_handler= handler; 129 rtsp_st->dynamic_handler= handler;
130 if(handler->open) { 130 if(handler->open) {
131 rtsp_st->dynamic_protocol_context= handler->open(); 131 rtsp_st->dynamic_protocol_context= handler->open();
132 } 132 }