mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avio: change avio_tell/skip from macros to inline functions
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
parent
59f65d9579
commit
af02073225
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user