[PATCH 3/5] Make url_fseek() 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: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 37a6f6d..039b6d3 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -160,7 +160,7 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence)
             return AVERROR_EOF;
         s->buf_ptr = s->buf_end + offset - s->pos;
     } else {
-        int64_t res = AVERROR(EPIPE);
+        int64_t res = AVERROR(ENOSYS);
 
 #if CONFIG_MUXERS || CONFIG_NETWORK
         if (s->write_flag) {
-- 
1.7.0


--9zSXsLTf0vkW971A
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0004-Make-url_fsize-return-AVERROR-ENOSYS-rather-than-AVE.patch"




More information about the ffmpeg-devel mailing list