[FFmpeg-devel] [PATCH] Udp.c

Ivan Kalvachev ikalvachev at gmail.com
Sun May 15 01:20:22 CEST 2011

On 5/13/11, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Mon, May 09, 2011 at 10:05:26PM +0100, JULIAN GARDNER wrote:
>> New patch which adds a thread into udp.c for receiving data into a
>> circular buffer, this stops the problem of live decoding/encoding giving
>> errors.
>> Also added a buf_size which is the number of TS packets that to be
>> allocated for the circular buffer.
> Ive applied it and switched it to use libavutils fifo.
> Our fifo doesnt need the semaphore and it simplifies the code.
> Please review my changes that i did to your code, they are a seperate
> commit so should be easy to review.
> thanks alot for this patch, this is a feature that was missing and
> requested alot.

There should be

#include <sys/resource.h>

In case sys/resource.h is really needed.
And I doubt it is really needed as I don't see new code using any
functions defined in it.

Just removing the #include fixes mingw compilation.
It also compiles on my system without new warnings.

More information about the ffmpeg-devel mailing list