[MPlayer-cvslog] r24102 - trunk/libmpdemux/demux_lavf.c
reimar
subversion at mplayerhq.hu
Sun Aug 19 23:22:27 CEST 2007
Author: reimar
Date: Sun Aug 19 23:22:27 2007
New Revision: 24102
Log:
Do not seek to an invalid position.
Patch by {emild [at] cs technion ac il}
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c (original)
+++ trunk/libmpdemux/demux_lavf.c Sun Aug 19 23:22:27 2007
@@ -148,6 +148,8 @@ static offset_t mp_seek(URLContext *h, o
else
return -1;
+ if(pos<0)
+ return -1;
if(pos<stream->end_pos && stream->eof)
stream_reset(stream);
if(stream_seek(stream, pos)==0)
More information about the MPlayer-cvslog
mailing list