summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-18 00:22:58 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-18 00:22:58 +0000
commit8d5e638f045919141cdd9821bfa869b2d8c1568e (patch)
treeabb59a89c64c5ed44dc4c2d5ca28629f8f693c3f /libavformat/aviobuf.c
parent8bab85e54cc478bd4c3a458aff26c59b378ce5fc (diff)
Make url_fseek() return AVERROR_EOF rather than AVERROR(EPIPE) if end
of file is reached. Originally committed as revision 22590 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 29d0715357..da05251279 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);