OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94daf2e
)
Only consider -1 as an error return value for open().
author
Martin Storsjö
<martin@martin.st>
Mon, 27 Jul 2009 12:36:22 +0000
(12:36 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Mon, 27 Jul 2009 12:36:22 +0000
(12:36 +0000)
This is:
- what Posix says (-1 on error, >=0 on success)
- fixing a bug on winCE (<0 sometimes)
Patch by Martin Storsjö: martin martin st
Originally committed as revision 19513 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/file.c
patch
|
blob
|
history
diff --git
a/libavformat/file.c
b/libavformat/file.c
index
da0ce15
..
d2cb530
100644
(file)
--- 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;