Skip to content

Commit

Permalink
rtsp: Look for RTP payload handlers for static payload types, too
Browse files Browse the repository at this point in the history
Originally committed as revision 25893 to svn://svn.ffmpeg.org/ffmpeg/trunk
  • Loading branch information
mstorsjo committed Dec 5, 2010
1 parent 003eb64 commit 6a7e31a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libavformat/rtsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 6a7e31a

Please sign in to comment.