diff aviobuf.c @ 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 a9a36b4f83a2
children 6a24c2ae6ee4
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);