mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-02 18:07:47 +00:00
Add AVSEEK_FORCE flag to indicate that the code should attempt to seek
by any means. Originally committed as revision 22557 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
53f66cee0c
commit
493f54ada0
3 changed files with 12 additions and 3 deletions
|
@ -150,8 +150,9 @@ int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence)
|
|||
offset1 >= 0 && offset1 <= (s->buf_end - s->buffer)) {
|
||||
/* 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)){
|
||||
} else if(s->is_streamed && !s->write_flag && offset1 >= 0 &&
|
||||
( offset1 < (s->buf_end - s->buffer) + (1<<16)
|
||||
|| (whence & AVSEEK_FORCE))){
|
||||
while(s->pos < offset && !s->eof_reached)
|
||||
fill_buffer(s);
|
||||
if (s->eof_reached)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue