changeset 5856:a1121e5fa662 libavformat

Make url_fseek() return AVERROR_EOF rather than AVERROR(EPIPE) if end of file is reached.
author stefano
date Thu, 18 Mar 2010 00:22:58 +0000
parents 98bd293526db
children 121d6994c20e
files aviobuf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/aviobuf.c	Wed Mar 17 15:14:18 2010 +0000
+++ b/aviobuf.c	Thu Mar 18 00:22:58 2010 +0000
@@ -156,7 +156,7 @@
         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);