[PATCH 02/12] Make url_fseek() return AVERROR_EOF rather than AVERROR(EPIPE) if end of file is reached.

Stefano Sabatini stefano.sabatini-lala
Tue Mar 16 22:49:59 CET 2010


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

diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 29d0715..da05251 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -156,7 +156,7 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence)
         while(s->pos < offset && !s->eof_reached)
             fill_buffer(s);
         if (s->eof_reached)
-            return AVERROR(EPIPE);
+            return AVERROR_EOF;
         s->buf_ptr = s->buf_end + offset - s->pos;
     } else {
         int64_t res = AVERROR(EPIPE);
-- 
1.6.6.1


--EuxKj2iCbKjpUGkD--



More information about the ffmpeg-devel mailing list