Originally committed as revision 24277 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -358,8 +358,9 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence); · 357 unmodified lines | |||
| 358 | /** | 358 | /** |
| 359 | * Skip given number of bytes forward. | 359 | * Skip given number of bytes forward. |
| 360 | * @param offset number of bytes | 360 | * @param offset number of bytes |
| 361 | * @return 0 on success, <0 on error | ||
| 361 | */ | 362 | */ |
| 362 | void url_fskip(ByteIOContext *s, int64_t offset); | 363 | int url_fskip(ByteIOContext *s, int64_t offset); |
| 363 | 364 | ||
| 364 | /** | 365 | /** |
| 365 | * ftell() equivalent for ByteIOContext. | 366 | * ftell() equivalent for ByteIOContext. |
| @@ -182,9 +182,10 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence) · 181 unmodified lines | |||
| 182 | return offset; | 182 | return offset; |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | void url_fskip(ByteIOContext *s, int64_t offset) | 185 | int url_fskip(ByteIOContext *s, int64_t offset) |
| 186 | { | 186 | { |
| 187 | url_fseek(s, offset, SEEK_CUR); | 187 | int64_t ret = url_fseek(s, offset, SEEK_CUR); |
| 188 | return ret < 0 ? ret : 0; | ||
| 188 | } | 189 | } |
| 189 | 190 | ||
| 190 | int64_t url_ftell(ByteIOContext *s) | 191 | int64_t url_ftell(ByteIOContext *s) |