mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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:
parent
f1c7c6aee8
commit
37e9cc4ec7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user