# HG changeset patch # User stefano # Date 1268871778 0 # Node ID a1121e5fa662c1716e3c174147cccd1f36311235 # Parent 98bd293526dbef3f4be855db98c736d8e949c4d2 Make url_fseek() return AVERROR_EOF rather than AVERROR(EPIPE) if end of file is reached. diff -r 98bd293526db -r a1121e5fa662 aviobuf.c --- a/aviobuf.c Wed Mar 17 15:14:18 2010 +0000 +++ b/aviobuf.c Thu Mar 18 00:22:58 2010 +0000 @@ -156,7 +156,7 @@ 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);