[FFmpeg-devel] [PATCH] Udp.c

Michael Niedermayer michaelni at gmx.at
Sun May 15 04:59:27 CEST 2011

On Sun, May 15, 2011 at 02:20:22AM +0300, Ivan Kalvachev wrote:
> 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>
> #endif
> 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.

done that change (a while ago, should have replied earlier but just
realized i forgot now)

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Incandescent light bulbs waste a lot of energy as heat so the EU forbids them.
Their replacement, compact fluorescent lamps, much more expensive, dont fit in
many old lamps, flicker, contain toxic mercury, produce a fraction of the light
that is claimed and in a unnatural spectrum rendering colors different than
in natural light. Ah and we now need to turn the heaters up more in winter to
compensate the lower wasted heat. Who wins? Not the environment, thats for sure
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110515/163f2577/attachment.asc>

More information about the ffmpeg-devel mailing list