diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-24 16:33:56 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-24 16:33:56 +0000 |
commit | f1f78a9d850774efb7293128ef68d2561c40d385 (patch) | |
tree | d7b085df25bf30de6dc81feaf9cd1ef044394941 | |
parent | 8880c8bcc3e430cdaa5a9af782ce3b04a8a377ea (diff) | |
download | ffmpeg-f1f78a9d850774efb7293128ef68d2561c40d385.tar.gz |
Doxument url_close().
Originally committed as revision 21420 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avio.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index d7b7e2630d..fbc418ed58 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -103,7 +103,16 @@ int url_read(URLContext *h, unsigned char *buf, int size); int url_read_complete(URLContext *h, unsigned char *buf, int size); int url_write(URLContext *h, unsigned char *buf, int size); int64_t url_seek(URLContext *h, int64_t pos, int whence); + +/** + * Closes the resource accessed by the URLContext h, and frees the + * memory used by it. + * + * @return a negative value if an error condition occurred, 0 + * otherwise + */ int url_close(URLContext *h); + int url_exist(const char *filename); int64_t url_filesize(URLContext *h); |