mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-02 02:30:58 +00:00
rtpmap is case-insensitive, see comment from Luca in "[PATCH] rtsp.c:
keep-alive" thread. Originally committed as revision 17862 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6208d67664
commit
743b389074
@ -124,7 +124,7 @@ static int sdp_parse_rtpmap(AVCodecContext *codec, RTSPStream *rtsp_st, int payl
|
|||||||
if (payload_type >= RTP_PT_PRIVATE) {
|
if (payload_type >= RTP_PT_PRIVATE) {
|
||||||
RTPDynamicProtocolHandler *handler= RTPFirstDynamicPayloadHandler;
|
RTPDynamicProtocolHandler *handler= RTPFirstDynamicPayloadHandler;
|
||||||
while(handler) {
|
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;
|
codec->codec_id = handler->codec_id;
|
||||||
rtsp_st->dynamic_handler= handler;
|
rtsp_st->dynamic_handler= handler;
|
||||||
if(handler->open) {
|
if(handler->open) {
|
||||||
|
Loading…
Reference in New Issue
Block a user