# HG changeset patch # User mstorsjo # Date 1284572365 0 # Node ID 2697448798ee43fbe05a95eae7afba513807ece6 # Parent f06908662125cfb2c6fb38cb349bad45327df837 rtsp: Handle standard assigned codec names for private payload types, too diff -r f06908662125 -r 2697448798ee rtsp.c --- a/rtsp.c Wed Sep 15 17:35:39 2010 +0000 +++ b/rtsp.c Wed Sep 15 17:39:25 2010 +0000 @@ -114,6 +114,12 @@ break; } } + /* If no dynamic handler was found, check with the list of standard + * allocated types, if such a stream for some reason happens to + * use a private payload type. This isn't handled in rtpdec.c, since + * the format name from the rtpmap line never is passed into rtpdec. */ + if (!rtsp_st->dynamic_handler) + codec->codec_id = ff_rtp_codec_id(buf, codec->codec_type); } else { /* We are in a standard case * (from http://www.iana.org/assignments/rtp-parameters). */