[FFmpeg-cvslog] r11233 - trunk/libavformat/aviobuf.c
bcoudurier
subversion
Sun Dec 16 18:52:47 CET 2007
Author: bcoudurier
Date: Sun Dec 16 18:52:46 2007
New Revision: 11233
Log:
return error when url_fseek could not read until desired offset in streamed mode
Modified:
trunk/libavformat/aviobuf.c
Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c (original)
+++ trunk/libavformat/aviobuf.c Sun Dec 16 18:52:46 2007
@@ -139,6 +139,8 @@ offset_t url_fseek(ByteIOContext *s, off
offset1 >= 0 && offset1 < (s->buf_end - s->buffer) + (1<<16)){
while(s->pos < offset && !s->eof_reached)
fill_buffer(s);
+ if (s->eof_reached)
+ return AVERROR(EPIPE);
s->buf_ptr = s->buf_end + offset - s->pos;
} else {
offset_t res = AVERROR(EPIPE);
More information about the ffmpeg-cvslog
mailing list