Mercurial > libavformat.hg
comparison rtsp.c @ 6477:2697448798ee libavformat
rtsp: Handle standard assigned codec names for private payload types, too
author | mstorsjo |
---|---|
date | Wed, 15 Sep 2010 17:39:25 +0000 |
parents | d1500c270acc |
children |
comparison
equal
deleted
inserted
replaced
6476:f06908662125 | 6477:2697448798ee |
---|---|
112 if (handler->open) | 112 if (handler->open) |
113 rtsp_st->dynamic_protocol_context = handler->open(); | 113 rtsp_st->dynamic_protocol_context = handler->open(); |
114 break; | 114 break; |
115 } | 115 } |
116 } | 116 } |
117 /* If no dynamic handler was found, check with the list of standard | |
118 * allocated types, if such a stream for some reason happens to | |
119 * use a private payload type. This isn't handled in rtpdec.c, since | |
120 * the format name from the rtpmap line never is passed into rtpdec. */ | |
121 if (!rtsp_st->dynamic_handler) | |
122 codec->codec_id = ff_rtp_codec_id(buf, codec->codec_type); | |
117 } else { | 123 } else { |
118 /* We are in a standard case | 124 /* We are in a standard case |
119 * (from http://www.iana.org/assignments/rtp-parameters). */ | 125 * (from http://www.iana.org/assignments/rtp-parameters). */ |
120 /* search into AVRtpPayloadTypes[] */ | 126 /* search into AVRtpPayloadTypes[] */ |
121 codec->codec_id = ff_rtp_codec_id(buf, codec->codec_type); | 127 codec->codec_id = ff_rtp_codec_id(buf, codec->codec_type); |