Commit 37e9cc4e authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

Remove two instances of AVERROR(ff_neterrno()), because ff_neterrno() itself

already does AVERROR().

Originally committed as revision 25671 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f1c7c6ae
......@@ -155,7 +155,7 @@ static int tcp_read(URLContext *h, uint8_t *buf, int size)
if (len < 0) {
if (ff_neterrno() != FF_NETERROR(EINTR) &&
ff_neterrno() != FF_NETERROR(EAGAIN))
return AVERROR(ff_neterrno());
return ff_neterrno();
} else return len;
} else if (ret < 0) {
if (ff_neterrno() == FF_NETERROR(EINTR))
......@@ -187,7 +187,7 @@ static int tcp_write(URLContext *h, const uint8_t *buf, int size)
if (len < 0) {
if (ff_neterrno() != FF_NETERROR(EINTR) &&
ff_neterrno() != FF_NETERROR(EAGAIN))
return AVERROR(ff_neterrno());
return ff_neterrno();
continue;
}
size -= len;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment