diff options
author | Peter Ross <pross@xvid.org> | 2011-03-03 22:37:05 +1100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-03-07 10:19:46 -0500 |
commit | 2af07d36fc0e9f7e10e07b6336748a73ae2e2909 (patch) | |
tree | 8d491fc9956a9d5386303c4132e1217cd608540e /libavformat/avio.h | |
parent | 02dd3666c2944a3db44ba13916ba40dbdd41f9b1 (diff) | |
download | ffmpeg-2af07d36fc0e9f7e10e07b6336748a73ae2e2909.tar.gz |
avio: add avio_skip macro
This is a substitute for the url_fskip function that was deprecated by
commit 0300db8ad778a194b4a8ec98f6da3de5b41c46ee. avio_fskip is provided to
improve demuxer code readability. It distinguishes the act of skipping over
unknown or irrelevant bytes from the standard avio_seek operation.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index acdd0c1bd0..a998808788 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -474,6 +474,12 @@ 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 + * @return new position or AVERROR. + */ +#define avio_skip(s, offset) avio_seek(s, offset, SEEK_CUR) + +/** * ftell() equivalent for AVIOContext. * @return position or AVERROR. */ |