summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/file.c b/libavformat/file.c
index da0ce15094..d2cb5302d4 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -51,7 +51,7 @@ static int file_open(URLContext *h, const char *filename, int flags)
access |= O_BINARY;
#endif
fd = open(filename, access, 0666);
- if (fd < 0)
+ if (fd == -1)
return AVERROR(ENOENT);
h->priv_data = (void *) (intptr_t) fd;
return 0;