1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avio: add avio_skip macro

This is a substitute for the url_fskip function that was deprecated by
commit 0300db8ad7. 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>
This commit is contained in:
Peter Ross 2011-03-03 22:37:05 +11:00 committed by Ronald S. Bultje
parent 02dd3666c2
commit 2af07d36fc

View File

@ -473,6 +473,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.