[FFmpeg-devel] [PATCH] udp: Return the actual error code on errors, instead of AVERROR(EIO)

Martin Storsjö martin
Tue Oct 5 16:09:58 CEST 2010


On Tue, 5 Oct 2010, Ronald S. Bultje wrote:

> On Tue, Oct 5, 2010 at 9:27 AM, Martin Storsjo <martin at martin.st> wrote:
> > ---
> > ?libavformat/udp.c | ? ?2 +-
> > ?1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/libavformat/udp.c b/libavformat/udp.c
> > index 0ee22c1..58fbe96 100644
> > --- a/libavformat/udp.c
> > +++ b/libavformat/udp.c
> > @@ -470,7 +470,7 @@ static int udp_write(URLContext *h, const uint8_t *buf, int size)
> > ? ? ? ? if (ret < 0) {
> > ? ? ? ? ? ? if (ff_neterrno() != FF_NETERROR(EINTR) &&
> > ? ? ? ? ? ? ? ? ff_neterrno() != FF_NETERROR(EAGAIN))
> > - ? ? ? ? ? ? ? ?return AVERROR(EIO);
> > + ? ? ? ? ? ? ? ?return ff_neterrno();
> > ? ? ? ? } else {
> > ? ? ? ? ? ? break;
> > ? ? ? ? }
> 
> OK.

Applied

// Martin



More information about the ffmpeg-devel mailing list