return error when url_fseek could not read until desired offset in streamed mode
Originally committed as revision 11233 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5d81d64175
commit
5cb4b82a17
@ -139,6 +139,8 @@ offset_t url_fseek(ByteIOContext *s, offset_t offset, int whence)
|
|||||||
offset1 >= 0 && offset1 < (s->buf_end - s->buffer) + (1<<16)){
|
offset1 >= 0 && offset1 < (s->buf_end - s->buffer) + (1<<16)){
|
||||||
while(s->pos < offset && !s->eof_reached)
|
while(s->pos < offset && !s->eof_reached)
|
||||||
fill_buffer(s);
|
fill_buffer(s);
|
||||||
|
if (s->eof_reached)
|
||||||
|
return AVERROR(EPIPE);
|
||||||
s->buf_ptr = s->buf_end + offset - s->pos;
|
s->buf_ptr = s->buf_end + offset - s->pos;
|
||||||
} else {
|
} else {
|
||||||
offset_t res = AVERROR(EPIPE);
|
offset_t res = AVERROR(EPIPE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user