git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
udp: Return the actual error code on errors, instead of AVERROR(EIO)
[ffmpeg.git]
/
libavformat
/
udp.c
diff --git
a/libavformat/udp.c
b/libavformat/udp.c
index
83e8b37
..
01f441b
100644
(file)
--- 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))
if (ret < 0) {
if (ff_neterrno() != FF_NETERROR(EINTR) &&
ff_neterrno() != FF_NETERROR(EAGAIN))
- return
AVERROR(EIO
);
+ return
ff_neterrno(
);
} else {
break;
}
} else {
break;
}