diff options
author | Martin Storsjö <martin@martin.st> | 2010-10-05 14:09:30 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-10-05 14:09:30 +0000 |
commit | 25a2ebb917f301c26be7050e9b5dfe28fe7ade0e (patch) | |
tree | 7ee646fb3aebdc12cdf80647774042b3d2690a0c | |
parent | 42f9582d8da0176130993f02be908bec348ef3e4 (diff) | |
download | ffmpeg-25a2ebb917f301c26be7050e9b5dfe28fe7ade0e.tar.gz |
udp: Return the actual error code on errors, instead of AVERROR(EIO)
Originally committed as revision 25350 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index 83e8b379eb..01f441b711 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -469,7 +469,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; } |