changeset 24082:13893a33f5ba

Do not seek to an invalid position. Patch by {emild [at] cs technion ac il}
author reimar
date Sun, 19 Aug 2007 21:22:27 +0000
parents b3bc18ea5878
children a2e0a85cdf71
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sun Aug 19 20:53:43 2007 +0000
+++ b/libmpdemux/demux_lavf.c	Sun Aug 19 21:22:27 2007 +0000
@@ -148,6 +148,8 @@
     else
         return -1;
 
+    if(pos<0)
+        return -1;
     if(pos<stream->end_pos && stream->eof)
         stream_reset(stream);
     if(stream_seek(stream, pos)==0)