diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-04-18 17:37:21 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-04-18 17:37:21 +0000 |
commit | 4c4ef3db4b939c57cdf18b1dcf9b8d5271658a70 (patch) | |
tree | 549258829bcaaac4b6f23c02c6734b5e4ea0d0b1 | |
parent | 28894105c8fe255ab12f7e7d23b67dd1ad3cf5f1 (diff) | |
download | ffmpeg-4c4ef3db4b939c57cdf18b1dcf9b8d5271658a70.tar.gz |
Make url_fsize() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) if
the seek operation is not defined in the ByteIOContext.
Originally committed as revision 22902 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/aviobuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 421a64a338..1746d03aae 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -197,7 +197,7 @@ int64_t url_fsize(ByteIOContext *s) 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) |