[FFmpeg-devel] [PATCH] rtsp: Handle standard assigned codec names for private payload types, too

Martin Storsjö martin
Wed Sep 15 11:56:39 CEST 2010

On Mon, 13 Sep 2010, Martin Storsj? wrote:

> On Sun, 12 Sep 2010, Ronald S. Bultje wrote:
> > On Sat, Sep 11, 2010 at 3:24 PM, Martin Storsj? <martin at martin.st> wrote:
> > > In most cases, the payload type in RTP is one of the standard assigned
> > > numbers (below 96) for codecs that have a standard number assigned, and
> > > private/dynamic ones for others. If, for some reason, a stream uses a
> > > dynamic payload type number for a codec with a standard type, we currently
> > > fail to open the stream properly. The attached patch uses ff_rtp_codec_id
> > > to find the right codec ID for such streams, if no matching dynamic
> > > handler was found.
> > 
> > I think rtpdec.c already handles this, e.g. for PCM audio etc.
> No, it doesn't. rtpdec.c never is given the textual string that describes 
> the payload from the rtpmap SDP line, it's never passed outside of 
> sdp_parse_rtpmap in rtsp.c, so we need to map it into a codec id there.

Any objections to applying this?

// Martin

More information about the ffmpeg-devel mailing list