History

url_fskip: Return an error code if the url_fseek failed

Originally committed as revision 24277 to svn://svn.ffmpeg.org/ffmpeg/trunk

Martin Storsjö committed 16 years ago

Commit d5e9dde1 parent 5c327552 files · +5 −3Browse files

Unified · Split

2 files
  1. libavformat/avio.h +2 −1
  2. libavformat/aviobuf.c +3 −2
libavformat/avio.h+2−1
@@ -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 bytes360 * @param offset number of bytes
361 * @return 0 on success, <0 on error
361 */362 */
362void url_fskip(ByteIOContext *s, int64_t offset);363int url_fskip(ByteIOContext *s, int64_t offset);
363 364
364/**365/**
365 * ftell() equivalent for ByteIOContext.366 * ftell() equivalent for ByteIOContext.
libavformat/aviobuf.c+3−2
@@ -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
185void url_fskip(ByteIOContext *s, int64_t offset)185int 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
190int64_t url_ftell(ByteIOContext *s)191int64_t url_ftell(ByteIOContext *s)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t