[PATCH 2/4] Make url_fseek() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) in the case where the ByteIOContext seek callback has to be used but is not defined.

Stefano Sabatini stefano.sabatini-lala
Tue Mar 16 23:08:32 CET 2010


---
 libavformat/aviobuf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 8684903..cbc24cf 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -169,7 +169,7 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence)
         }
 #endif /* CONFIG_MUXERS || CONFIG_NETWORK */
         if (!s->seek)
-            return AVERROR(EPIPE);
+            return AVERROR(ENOSYS);
         if ((res = s->seek(s->opaque, offset, SEEK_SET)) < 0)
             return res;
         if (!s->write_flag)
-- 
1.7.0


--Dxnq1zWXvFF0Q93v--



More information about the ffmpeg-devel mailing list