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:
89451dd
)
avio: fix AVIO_FLAG_READ/WRITE test in ffurl_*.
author
Nicolas George
<nicolas.george@normalesup.org>
Wed, 20 Apr 2011 16:13:54 +0000
(18:13 +0200)
committer
Nicolas George
<nicolas.george@normalesup.org>
Wed, 20 Apr 2011 16:13:54 +0000
(18:13 +0200)
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
libavformat/avio.c
patch
|
blob
|
history
diff --git
a/libavformat/avio.c
b/libavformat/avio.c
index
0a09cf1
..
936a3d9
100644
(file)
--- a/
libavformat/avio.c
+++ b/
libavformat/avio.c
@@
-287,14
+287,14
@@
static inline int retry_transfer_wrapper(URLContext *h, unsigned char *buf, int
int ffurl_read(URLContext *h, unsigned char *buf, int size)
{
- if (
h->flags & AVIO_FLAG_WRITE
)
+ if (
!(h->flags & AVIO_FLAG_READ)
)
return AVERROR(EIO);
return retry_transfer_wrapper(h, buf, size, 1, h->prot->url_read);
}
int ffurl_read_complete(URLContext *h, unsigned char *buf, int size)
{
- if (
h->flags & AVIO_FLAG_WRITE
)
+ if (
!(h->flags & AVIO_FLAG_READ)
)
return AVERROR(EIO);
return retry_transfer_wrapper(h, buf, size, size, h->prot->url_read);
}