diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-24 13:07:54 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-24 13:07:54 +0000 |
commit | 1f8ad15ad32fe3f18ed0288659964872c536057e (patch) | |
tree | a1b0e8063c6d529cab5551c4eaf1af35b03c5c50 /libavformat | |
parent | 30b6147521a3b2a9df4a4094ccee65a5fd8bc18f (diff) | |
download | ffmpeg-1f8ad15ad32fe3f18ed0288659964872c536057e.tar.gz |
Doxument url_read().
Originally committed as revision 21415 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avio.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 39c1ce5178..0ab351310e 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -68,7 +68,18 @@ typedef int URLInterruptCB(void); int url_open_protocol (URLContext **puc, struct URLProtocol *up, const char *filename, int flags); int url_open(URLContext **h, const char *filename, int flags); + +/** + * Reads up to size bytes from the resource accessed by h, and stores + * the read bytes in buf. + * + * @return The number of bytes actually read, or a negative value + * corresponding to an AVERROR code in case of error. A value of zero + * indicates that it is not possible to read more from the accessed + * resource (except if the value of the size argument is also zero). + */ int url_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. |