]> git.sesse.net Git - ffmpeg/commitdiff
avio: deprecate url_fskip
authorAnton Khirnov <anton@khirnov.net>
Mon, 28 Feb 2011 13:57:56 +0000 (14:57 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 3 Mar 2011 13:15:09 +0000 (14:15 +0100)
avio_seek should be used instead

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 0300db8ad778a194b4a8ec98f6da3de5b41c46ee)

libavformat/avio.h
libavformat/aviobuf.c

index 568bdd346a6bf8894ecabf3034a1fbb5378dbade..cc46ad79e55715dc9edb85fcbcd28b68dcac896e 100644 (file)
@@ -421,6 +421,7 @@ attribute_deprecated void         put_tag(AVIOContext *s, const char *tag);
 attribute_deprecated int url_fopen( AVIOContext **s, const char *url, int flags);
 attribute_deprecated int url_fclose(AVIOContext *s);
 attribute_deprecated int64_t url_fseek(AVIOContext *s, int64_t offset, int whence);
+attribute_deprecated int url_fskip(AVIOContext *s, int64_t offset);
 /**
  * @}
  */
@@ -468,13 +469,6 @@ int avio_put_str16le(AVIOContext *s, const char *str);
  */
 int64_t avio_seek(AVIOContext *s, int64_t offset, int whence);
 
-/**
- * Skip given number of bytes forward.
- * @param offset number of bytes
- * @return 0 on success, <0 on error
- */
-int url_fskip(AVIOContext *s, int64_t offset);
-
 /**
  * ftell() equivalent for AVIOContext.
  * @return position or AVERROR.
index a74ad21604bb9ac92f9859e28cbb14d02bfd5ae1..0c733a704bcd4ff344c3331a4b2191482b10399a 100644 (file)
@@ -233,11 +233,13 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
     return offset;
 }
 
+#if FF_API_OLD_AVIO
 int url_fskip(AVIOContext *s, int64_t offset)
 {
     int64_t ret = avio_seek(s, offset, SEEK_CUR);
     return ret < 0 ? ret : 0;
 }
+#endif
 
 int64_t url_ftell(AVIOContext *s)
 {