diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-31 16:31:43 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-04 17:45:20 +0200 |
commit | bc371aca468c3dd8d1a8cb2b44c99798f232b145 (patch) | |
tree | 00455bb9d3db8113fbc18b885deffef20752add8 /libavformat/avio.c | |
parent | 0589da0aa525e4ba7c554408339fa3e862402af5 (diff) | |
download | ffmpeg-bc371aca468c3dd8d1a8cb2b44c99798f232b145.tar.gz |
avio: make url_read() internal.
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index a14ea767bc..0e1ebaacdd 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -180,6 +180,10 @@ int url_open(URLContext **puc, const char *filename, int flags) { return ffurl_open(puc, filename, flags); } +int url_read(URLContext *h, unsigned char *buf, int size) +{ + return ffurl_read(h, buf, size); +} #endif #define URL_SCHEME_CHARS \ @@ -258,7 +262,7 @@ static inline int retry_transfer_wrapper(URLContext *h, unsigned char *buf, int return len; } -int url_read(URLContext *h, unsigned char *buf, int size) +int ffurl_read(URLContext *h, unsigned char *buf, int size) { if (h->flags & URL_WRONLY) return AVERROR(EIO); |