From: Stefano Sabatini Date: Thu, 18 Mar 2010 00:22:58 +0000 (+0000) Subject: Make url_fseek() return AVERROR_EOF rather than AVERROR(EPIPE) if end X-Git-Tag: v0.6~541 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d5e638f045919141cdd9821bfa869b2d8c1568e;p=platform%2Fupstream%2Flibav.git Make url_fseek() return AVERROR_EOF rather than AVERROR(EPIPE) if end of file is reached. Originally committed as revision 22590 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 29d0715..da05251 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -156,7 +156,7 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence) while(s->pos < offset && !s->eof_reached) fill_buffer(s); if (s->eof_reached) - return AVERROR(EPIPE); + return AVERROR_EOF; s->buf_ptr = s->buf_end + offset - s->pos; } else { int64_t res = AVERROR(EPIPE);