summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-04-18 17:37:21 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-04-18 17:37:21 +0000
commit4c4ef3db4b939c57cdf18b1dcf9b8d5271658a70 (patch)
tree549258829bcaaac4b6f23c02c6734b5e4ea0d0b1 /libavformat/aviobuf.c
parent28894105c8fe255ab12f7e7d23b67dd1ad3cf5f1 (diff)
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
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c2
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)