[MPlayer-cvslog] r24105 - trunk/libmpdemux/demux_lavf.c
reimar
subversion at mplayerhq.hu
Mon Aug 20 11:28:44 CEST 2007
Author: reimar
Date: Mon Aug 20 11:28:44 2007
New Revision: 24105
Log:
We can support SEEK_END seeks only when stream->end_pos is known
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c (original)
+++ trunk/libmpdemux/demux_lavf.c Mon Aug 20 11:28:44 2007
@@ -141,7 +141,7 @@ static offset_t mp_seek(URLContext *h, o
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;
More information about the MPlayer-cvslog
mailing list