[FFmpeg-cvslog] r24277 - in trunk/libavformat: avio.h aviobuf.c
Stefano Sabatini
stefano.sabatini-lala
Sat Jul 17 01:28:47 CEST 2010
On date Saturday 2010-07-17 01:20:04 +0200, mstorsjo wrote:
> Author: mstorsjo
> Date: Sat Jul 17 01:20:03 2010
> New Revision: 24277
>
> Log:
> url_fskip: Return an error code if the url_fseek failed
>
> Modified:
> trunk/libavformat/avio.h
> trunk/libavformat/aviobuf.c
>
> Modified: trunk/libavformat/avio.h
> ==============================================================================
> --- trunk/libavformat/avio.h Sat Jul 17 00:36:01 2010 (r24276)
> +++ trunk/libavformat/avio.h Sat Jul 17 01:20:03 2010 (r24277)
> @@ -358,8 +358,9 @@ int64_t url_fseek(ByteIOContext *s, int6
> /**
> * Skip given number of bytes forward.
> * @param offset number of bytes
> + * @return 0 on success, <0 on error
> */
> -void url_fskip(ByteIOContext *s, int64_t offset);
> +int url_fskip(ByteIOContext *s, int64_t offset);
>
> /**
> * ftell() equivalent for ByteIOContext.
>
> Modified: trunk/libavformat/aviobuf.c
> ==============================================================================
> --- trunk/libavformat/aviobuf.c Sat Jul 17 00:36:01 2010 (r24276)
> +++ trunk/libavformat/aviobuf.c Sat Jul 17 01:20:03 2010 (r24277)
> @@ -182,9 +182,10 @@ int64_t url_fseek(ByteIOContext *s, int6
> 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)
Please bump minor + APIchanges...
More information about the ffmpeg-cvslog
mailing list