[FFmpeg-devel] [PATCH] udp.c: adjustable send/receive buffer size

Andreas Öman andreas
Wed Nov 12 22:41:17 CET 2008


Michael Niedermayer wrote:
> On Mon, Nov 10, 2008 at 02:41:45PM +0100, Jindrich Makovicka wrote:
>> Hi,
>>
>> currently, libavformat UDP source uses a fixed size receive buffer of
>> 64 kilobytes. In cases like receiving several higher bitrate streams
>> simultaneously, it is useful to have a larger buffer available to
>> prevent packet loss. The attached patch adds a new "buffer_size"
>> parameter which allows specifying the sending or receiving buffer size
>> in bytes.
> 
> if theres some use for a larger buffer and you confirmed that it really
> helps then i guess the patch is ok

I've bumped into this problem in the past (this was just during
some testing so I just quick-fixed the buffer size to remedy the
problem). I think it makes sense.

Applied.




More information about the ffmpeg-devel mailing list