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

Martin Storsjö martin
Sun Sep 12 12:13:49 CEST 2010


On Sun, 12 Sep 2010, Luca Barbato wrote:

> On 09/11/2010 09:24 PM, Martin Storsj? 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.
> > 
> Ok... but when that happens?

I don't know of any concrete examples where this happens, but it wouldn't 
surprise me if it would exist somewhere. Also, the amount of code for 
handling it is quite minimal, so I'd say it's a good measure for extra 
potential compatibility.

// Martin



More information about the ffmpeg-devel mailing list