aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-12-05 19:41:44 +0000
committerMartin Storsjö <martin@martin.st>2010-12-05 19:41:44 +0000
commit6a7e31a901c84d5466998dcefc4204f3db6c81ff (patch)
treeded4fbfaedb464fd41fd54ee32cbcf73ebe68dbc /libavformat
parent003eb6421783793f8e856edb2f84fdff679c85ec (diff)
downloadffmpeg-6a7e31a901c84d5466998dcefc4204f3db6c81ff.tar.gz
rtsp: Look for RTP payload handlers for static payload types, too
Originally committed as revision 25893 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 8afedddd1c..ce26911489 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -326,8 +326,13 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,
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 */