Commit 654bc665 authored by stefano's avatar stefano

Make url_fseek() return AVERROR_EOF rather than AVERROR(EPIPE) if end

of file is reached.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22590 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e827fb23
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment