[FFmpeg-cvslog] r25893 - trunk/libavformat/rtsp.c
mstorsjo
subversion
Sun Dec 5 20:41:44 CET 2010
Author: mstorsjo
Date: Sun Dec 5 20:41:44 2010
New Revision: 25893
Log:
rtsp: Look for RTP payload handlers for static payload types, too
Modified:
trunk/libavformat/rtsp.c
Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c Sun Dec 5 20:41:09 2010 (r25892)
+++ trunk/libavformat/rtsp.c Sun Dec 5 20:41:44 2010 (r25893)
@@ -326,8 +326,13 @@ static void sdp_parse_line(AVFormatConte
rtsp_st->stream_index = st->index;
st->codec->codec_type = codec_type;
if (rtsp_st->sdp_payload_type < RTP_PT_PRIVATE) {
+ RTPDynamicProtocolHandler *handler;
/* if standard payload type, we can find the codec right now */
ff_rtp_get_codec_info(st->codec, rtsp_st->sdp_payload_type);
+ /* Even static payload types may need a custom depacketizer */
+ handler = ff_rtp_handler_find_by_id(
+ rtsp_st->sdp_payload_type, st->codec->codec_type);
+ init_rtp_handler(handler, rtsp_st, st->codec);
}
}
/* put a default control url */
More information about the ffmpeg-cvslog
mailing list