[FFmpeg-cvslog] unix: Convert from AVERROR to errno range before comparing error codes
Martin Storsjö
git at videolan.org
Tue Aug 6 17:25:17 CEST 2013
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Aug 5 19:39:08 2013 +0300| [2a0ec47bd70ebb79e8b2d2f956feeb3a813df798] | committer: Martin Storsjö
unix: Convert from AVERROR to errno range before comparing error codes
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2a0ec47bd70ebb79e8b2d2f956feeb3a813df798
---
libavformat/unix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/unix.c b/libavformat/unix.c
index 09f3d68..95552a9 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);
More information about the ffmpeg-cvslog
mailing list