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

Martin Storsjo martin
Tue Oct 5 15:27:19 CEST 2010


---
 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;
         }
-- 
1.7.3.1




More information about the ffmpeg-devel mailing list