From 4c4ef3db4b939c57cdf18b1dcf9b8d5271658a70 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 18 Apr 2010 17:37:21 +0000 Subject: [PATCH] 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 --- libavformat/aviobuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)