diff options
author | Martin Storsjö <martin@martin.st> | 2010-10-05 18:09:30 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-10-05 18:09:30 +0400 |
commit | 25a2ebb917f301c26be7050e9b5dfe28fe7ade0e (patch) | |
tree | 7ee646fb3aebdc12cdf80647774042b3d2690a0c /libavformat/udp.c | |
parent | 42f9582d8da0176130993f02be908bec348ef3e4 (diff) |
udp: Return the actual error code on errors, instead of AVERROR(EIO)
Originally committed as revision 25350 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/udp.c')
-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; } |