Mercurial > mplayer.hg
changeset 24085:71d17c28f545
We can support SEEK_END seeks only when stream->end_pos is known
author | reimar |
---|---|
date | Mon, 20 Aug 2007 09:28:44 +0000 |
parents | 2b572bde6b3d |
children | f5b32d12b691 |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Mon Aug 20 09:27:47 2007 +0000 +++ b/libmpdemux/demux_lavf.c Mon Aug 20 09:28:44 2007 +0000 @@ -141,7 +141,7 @@ mp_msg(MSGT_HEADER,MSGL_DBG2,"mp_seek(%p, %d, %d)\n", h, (int)pos, whence); if(whence == SEEK_CUR) pos +=stream_tell(stream); - else if(whence == SEEK_END) + else if(whence == SEEK_END && stream->end_pos > 0) pos += stream->end_pos; else if(whence == SEEK_SET) pos += stream->start_pos;