mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
rtsp: Handle standard assigned codec names for private payload types, too
Originally committed as revision 25126 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0048a2a8d3
commit
160918d588
@ -114,6 +114,12 @@ static int sdp_parse_rtpmap(AVFormatContext *s,
|
||||
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). */
|
||||
|
Loading…
Reference in New Issue
Block a user