From afe879eb993944c55474e619fb123a0b00143ead Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 19 Aug 2007 21:22:27 +0000 Subject: Do not seek to an invalid position. Patch by {emild [at] cs technion ac il} git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24102 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_lavf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmpdemux/demux_lavf.c') diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c index a153615fc5..50250db877 100644 --- a/libmpdemux/demux_lavf.c +++ b/libmpdemux/demux_lavf.c @@ -148,6 +148,8 @@ static offset_t mp_seek(URLContext *h, offset_t pos, int whence){ else return -1; + if(pos<0) + return -1; if(posend_pos && stream->eof) stream_reset(stream); if(stream_seek(stream, pos)==0) -- cgit v1.2.3