[PATCH 05/12] Make url_fsize() return AVERROR(ESPIPE) rather than AVERROR(EPIPE) if the seek operation is not defined on the url protocol handler.

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 41657a4..789617c 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -198,7 +198,7 @@ int64_t url_fsize(ByteIOContext *s)
         return AVERROR(EINVAL);
 
     if (!s->seek)
-        return AVERROR(EPIPE);
+        return AVERROR(ESPIPE);
     size = s->seek(s->opaque, 0, AVSEEK_SIZE);
     if(size<0){
         if ((size = s->seek(s->opaque, -1, SEEK_END)) < 0)
-- 
1.6.6.1


--Lb0e7rgc7IsuDeGj--



More information about the ffmpeg-devel mailing list