[FFmpeg-devel] [PATCH] RTSP-MS 4/15: blocksize detection

Benoit Fouet benoit.fouet
Tue Jan 6 09:37:37 CET 2009


Hi Ronald,

On 01/06/2009 05:57 AM, Ronald S. Bultje wrote:
> Hi,
>
> attached patch parses the "Blocksize" field in the RTSP reply header
> in response to each SETUP request (one per m= line in the SDP). This
> is the maximum amount of data contained in a single RTP packet
> transmitted by the server, and can be larger than
> RTP_MAX_PACKET_LENGTH (it's one of those things where it's not 100%
> RTP-compliant). I'm parsing it, taking the max Blocksize value and
> then the max between this "max. blocksize value" and
> RTP_MAX_PACKET_LENGTH to determine the buffer size for reading
> individual RTP packets.
>
>   

you will have a packet size of 0 if the server does not implement the
Blocksize field ? IIRC this field is optional, no ?

Ben





More information about the ffmpeg-devel mailing list