Mercurial > libavformat.hg
diff aviobuf.c @ 5961:d9da72409ff9 libavformat
Make url_fsize() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) if
the seek operation is not defined in the ByteIOContext.
author | stefano |
---|---|
date | Sun, 18 Apr 2010 17:37:21 +0000 |
parents | dc1a033edd9f |
children | 6eada15742a7 |
line wrap: on
line diff
--- a/aviobuf.c Sun Apr 18 17:37:16 2010 +0000 +++ b/aviobuf.c Sun Apr 18 17:37:21 2010 +0000 @@ -197,7 +197,7 @@ return AVERROR(EINVAL); if (!s->seek) - return AVERROR(EPIPE); + return AVERROR(ENOSYS); size = s->seek(s->opaque, 0, AVSEEK_SIZE); if(size<0){ if ((size = s->seek(s->opaque, -1, SEEK_END)) < 0)