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
This commit is contained in:
Ronald S. Bultje 2010-11-04 13:53:16 +00:00
parent f1c7c6aee8
commit 37e9cc4ec7
1 changed files with 2 additions and 2 deletions

View File

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