diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-14 22:39:01 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-03-17 05:59:39 +0300 |
commit | af02073225e5b34a8ea72bd3ff531868ed0b5061 (patch) | |
tree | edd877e7b3e9c0ec3ce7388e82535c83cb992633 /libavformat/avio.h | |
parent | 59f65d9579262651731e9a22845957d78b4c4f57 (diff) |
avio: change avio_tell/skip from macros to inline functions
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 36be9fe4dd..9f45a6bd87 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -487,13 +487,19 @@ 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) +static av_always_inline int64_t avio_skip(AVIOContext *s, int64_t offset) +{ + return avio_seek(s, offset, SEEK_CUR); +} /** * ftell() equivalent for AVIOContext. * @return position or AVERROR. */ -#define avio_tell(s) avio_seek((s), 0, SEEK_CUR) +static av_always_inline int64_t avio_tell(AVIOContext *s) +{ + return avio_seek(s, 0, SEEK_CUR); +} /** * Get the filesize. |