diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-31 16:40:31 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-04 17:45:20 +0200 |
commit | dce375645945e31687493ebe82a7a89623e49bdc (patch) | |
tree | 2e28cf8a7b9a297545edb73b923f17ebd66c1f0c /libavformat/url.h | |
parent | bc371aca468c3dd8d1a8cb2b44c99798f232b145 (diff) | |
download | ffmpeg-dce375645945e31687493ebe82a7a89623e49bdc.tar.gz |
avio: make url_read_complete() internal.
Diffstat (limited to 'libavformat/url.h')
-rw-r--r-- | libavformat/url.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/url.h b/libavformat/url.h index 799b80c395..8d1a7f702c 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -69,4 +69,13 @@ int ffurl_open(URLContext **h, const char *url, int flags); */ int ffurl_read(URLContext *h, unsigned char *buf, int size); +/** + * Read as many bytes as possible (up to size), calling the + * read function multiple times if necessary. + * This makes special short-read handling in applications + * unnecessary, if the return value is < size then it is + * certain there was either an error or the end of file was reached. + */ +int ffurl_read_complete(URLContext *h, unsigned char *buf, int size); + #endif //AVFORMAT_URL_H |