[vlc-commits] stream: Fix segfault caused by invalid seek
Rafaël Carré
git at videolan.org
Thu Feb 7 15:42:03 CET 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Feb 5 23:58:47 2013 +0100| [59c5c14c867f016afa5b4a130107201637bf6b19] | committer: Rafaël Carré
stream: Fix segfault caused by invalid seek
Sample can be found on https://www.dropbox.com/s/cd56gjk4ablimp5/A_lawnmower.wmv
md5: d87c039c304b41cc30bddfe21e88af36
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=59c5c14c867f016afa5b4a130107201637bf6b19
---
src/input/stream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/stream.c b/src/input/stream.c
index 0598a30..e75618f 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -1260,7 +1260,7 @@ static int AStreamSeekStream( stream_t *s, uint64_t i_pos )
if( p_sys->stream.i_used < STREAM_READ_ATONCE / 2 )
p_sys->stream.i_used = STREAM_READ_ATONCE / 2;
- if( AStreamRefillStream( s ) && i_pos == tk->i_end )
+ if( AStreamRefillStream( s ) && i_pos >= tk->i_end )
return VLC_EGENERIC;
}
return VLC_SUCCESS;
More information about the vlc-commits
mailing list