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

Luca Barbato lu_zero
Tue Jan 6 13:37:23 CET 2009


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.

Fine, even if the idea is bogus: you should fragment using the mtu as 
max length since rtp could use quite unreliable transports...

lu

-- 

Luca Barbato
Gentoo Council Member
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list