Mercurial > libavformat.hg
diff aviobuf.c @ 6265:6eead40d46a7 libavformat
url_fskip: Return an error code if the url_fseek failed
author | mstorsjo |
---|---|
date | Fri, 16 Jul 2010 23:20:03 +0000 |
parents | 79fc252c65cd |
children | 68c7733519ca |
line wrap: on
line diff
--- a/aviobuf.c Fri Jul 16 22:36:01 2010 +0000 +++ b/aviobuf.c Fri Jul 16 23:20:03 2010 +0000 @@ -182,9 +182,10 @@ 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)