Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Seeking forward in non-seekable media by discarding data, regardless …
…of how far to seek. Won't SEEK_END unless forced though.

Originally committed as revision 22822 to svn://svn.ffmpeg.org/ffmpeg/trunk
  • Loading branch information
Tjoppen committed Apr 8, 2010
1 parent 01d91b9 commit 7a6fe01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/aviobuf.c
Expand Up @@ -153,7 +153,7 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence)
/* can do the seek inside the buffer */
s->buf_ptr = s->buffer + offset1;
} else if(s->is_streamed && !s->write_flag && offset1 >= 0 &&
(offset1 < (s->buf_end - s->buffer) + (1<<16) || force)) {
(whence != SEEK_END || force)) {

This comment has been minimized.

Copy link
@richardpl

richardpl Sep 24, 2019

Contributor

dunno

while(s->pos < offset && !s->eof_reached)
fill_buffer(s);
if (s->eof_reached)
Expand Down

0 comments on commit 7a6fe01

Please sign in to comment.