[FFmpeg-cvslog] r22590 - trunk/libavformat/aviobuf.c

stefano subversion
Thu Mar 18 01:22:58 CET 2010


Author: stefano
Date: Thu Mar 18 01:22:58 2010
New Revision: 22590

Log:
Make url_fseek() return AVERROR_EOF rather than AVERROR(EPIPE) if end
of file is reached.

Modified:
   trunk/libavformat/aviobuf.c

Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c	Thu Mar 18 00:51:12 2010	(r22589)
+++ trunk/libavformat/aviobuf.c	Thu Mar 18 01:22:58 2010	(r22590)
@@ -156,7 +156,7 @@ int64_t url_fseek(ByteIOContext *s, int6
         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);



More information about the ffmpeg-cvslog mailing list