diff options
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 9f1187efe7..d4db268225 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -182,9 +182,10 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence) return offset; } -void url_fskip(ByteIOContext *s, int64_t offset) +int url_fskip(ByteIOContext *s, int64_t offset) { - url_fseek(s, offset, SEEK_CUR); + int64_t ret = url_fseek(s, offset, SEEK_CUR); + return ret < 0 ? ret : 0; } int64_t url_ftell(ByteIOContext *s) |