[PATCH 4/5] Make url_fsize() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) if the seek operation is not defined in the ByteIOContext.
Stefano Sabatini
stefano.sabatini-lala
Tue Mar 16 23:10:21 CET 2010
---
libavformat/aviobuf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 039b6d3..0c46327 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)
--
1.7.0
--9zSXsLTf0vkW971A--
More information about the ffmpeg-devel
mailing list