diff options
author | Martin Storsjö <martin@martin.st> | 2013-08-05 19:39:08 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-08-06 10:38:14 +0300 |
commit | 2a0ec47bd70ebb79e8b2d2f956feeb3a813df798 (patch) | |
tree | 2abaadeb408a5832c387ca98bfdf22abe693e4fb /libavformat/unix.c | |
parent | 0ba4ea312b2a6bebbdd7ff228d46385159c63c9f (diff) | |
download | ffmpeg-2a0ec47bd70ebb79e8b2d2f956feeb3a813df798.tar.gz |
unix: Convert from AVERROR to errno range before comparing error codes
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/unix.c')
-rw-r--r-- | libavformat/unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/unix.c b/libavformat/unix.c index 09f3d68127..95552a9a7b 100644 --- a/libavformat/unix.c +++ b/libavformat/unix.c @@ -93,7 +93,7 @@ static int unix_open(URLContext *h, const char *filename, int flags) return 0; fail: - if (s->listen && ret != EADDRINUSE) + if (s->listen && AVUNERROR(ret) != EADDRINUSE) unlink(s->addr.sun_path); if (fd >= 0) closesocket(fd); |