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

Ronald S. Bultje rsbultje
Tue Oct 5 16:07:47 CEST 2010


Hi,

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.

Ronald



More information about the ffmpeg-devel mailing list