aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-03-11 12:24:53 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-03-11 12:25:44 +0100
commit75a8e0f0ab644701061aec87f11a79fcaa8c1c29 (patch)
treef13636e4c0e7728bf9a009f335e3a11db2e88e0a /libavformat/aviobuf.c
parentb33fa8a1cdbe92824b833eb1ee3ec360f8d8b00f (diff)
downloadffmpeg-75a8e0f0ab644701061aec87f11a79fcaa8c1c29.tar.gz
Add avio_skip()
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 1bdc478ed9..e82d89c433 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -233,6 +233,11 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
return offset;
}
+int64_t avio_skip(AVIOContext *s, int64_t offset)
+{
+ return avio_seek(s, offset, SEEK_CUR);
+}
+
#if FF_API_OLD_AVIO
int url_fskip(AVIOContext *s, int64_t offset)
{