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

Ronald S. Bultje rsbultje
Tue Jan 6 13:40:29 CET 2009


On Tue, Jan 6, 2009 at 3:37 AM, Benoit Fouet <benoit.fouet at free.fr> wrote:
> On 01/06/2009 05:57 AM, Ronald S. Bultje wrote:
>> 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 ?

RTSPHeader->blocksize will be zero, but AVFormatContext->packet_size
(which I use to determine the buffer size) will be
RTP_MAX_PACKET_LENGTH (see the s->packet_size =
FFMAX(RTP_MAX_PACKET_LENGTH, reply->blocksize); at the bottom of the
patch), which is the current default value.


More information about the ffmpeg-devel mailing list