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