[PATCH 3/4] Document url_seek().

Stefano Sabatini stefano.sabatini-lala
Sun Feb 28 00:22:36 CET 2010


---
 libavformat/avio.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/libavformat/avio.h b/libavformat/avio.h
index 3d02fb8..57a9c94 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -126,6 +126,20 @@ int url_read_complete(URLContext *h, unsigned char *buf, int size);
  */
 int url_write(URLContext *h, unsigned char *buf, int size);
 
+/**
+ * Changes the position that will be used by next read/write operation
+ * on the resource accessed by h.
+ *
+ * @param pos specifies the new position to set
+ * @param whence specifies how pos should be interpreted, it must be
+ * one of SEEK_SET (seek from the beginning), SEEK_CUR (seek from the
+ * current position), SEEK_END (seek from the end), or AVSEEK_SIZE
+ * (return the filesize of the requested resource, pos is ignored).
+ * @return a negative value corresponding to an AVERROR code in case
+ * of failure, or the resulting file position, measured in bytes from
+ * the beginning of the file. You can use this feature together with
+ * `SEEK_CUR' to read the current file position.
+ */
 int64_t url_seek(URLContext *h, int64_t pos, int whence);
 
 /**
-- 
1.7.0


--tKW2IUtsqtDRztdT--



More information about the ffmpeg-devel mailing list